Subject: | $mylib::Etc must be update when use parent directory. |
I'm tried this script, but got (may) wrong result:
$ cd /path/to/some/dir
$ mkdir -p bin lib
$ cat <<END > bin/foo.pl
#!/usr/bin/perl
use mylib qw($Etc);
print "$Etc\n";
END
$ chmod a+x bin/foo.pl
$ ./bin/foo.pl
/path/to/some/dir/bin/etc
This result should be /path/to/some/dir/etc, or not?
Thanks.