Skip Menu |

This queue is for tickets about the mylib CPAN distribution.

Report information
The Basics
Id: 36188
Status: resolved
Priority: 0/
Queue: mylib

People
Owner: Nobody in particular
Requestors: topia [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.00
Fixed in: (no value)



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.
You are so right. Fixed in 1.01 which I just uploaded. The $Etc was initialized before $Prefix had been adjusted. Amazing that it's possible to have bugs in such trivial code :(
From: topia [...] cpan.org
Show quoted text
> Amazing that > it's possible to have bugs in such trivial code :(
I think so too :-( Thank you to quick response.
sorry to reopen.