in reply to FindBin works differently on Fedora Core 2?
< $VERSION = '1.5'; --- > $VERSION = '1.4'; > > use Cwd; 72,73c74,79 < < $self->canonpath(join('/', @_, '')); # '' because need a trailin +g '/' --- > my @args = @_; > foreach (@args) { > # append a slash to each argument unless it has one there > $_ .= "/" if $_ eq '' || substr($_,-1) ne "/"; > } > return $self->canonpath(join('', @args)); 85c91
It would appear that the trailing slash is considered more "correct" but was not functioning correctly in the older version?
At any rate, if you use the catfile() and catdir() methods from File::Spec, the dreaded '//' problem should not be an issue.
Matt
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: FindBin works different on Fedora Core 2?
by samtregar (Abbot) on Jun 07, 2004 at 22:30 UTC | |
by mojotoad (Monsignor) on Jun 07, 2004 at 23:11 UTC | |
by samtregar (Abbot) on Jun 08, 2004 at 01:51 UTC | |
by mojotoad (Monsignor) on Jun 08, 2004 at 05:55 UTC | |
by samtregar (Abbot) on Jun 08, 2004 at 16:58 UTC | |
|