Discussion:
Perl 5.8.4 bug?
(too old to reply)
NormW
2005-10-29 19:55:43 UTC
Permalink
Greetings All,
Trying a script on Perl 5.8.4 (both June and September release) and get
the following:

@files = <\\openssl\\certs\\*.pem>;
returns $files[1] = 'opensslcerts*.pem'

or

$path = \\openssl\\certs;
@files = <$path\\*.pem>;
returns $files[1] = 'opensslcerts*.pem'

but

@files = </openssl/certs/*.pem>;
returns the correct .pem file list array....

Also get the same results if you use glob(" ").

Seems this function is removing path separators if they don't face the
'right' way, even when 'escaped'...

Can anyone confirm?
Norm
NormW
2005-11-07 19:32:01 UTC
Permalink
Talk about unlucky... seems I'm the only one (getting/noticing) this!!
Post by NormW
Greetings All,
Trying a script on Perl 5.8.4 (both June and September release) and get
@files = <\\openssl\\certs\\*.pem>;
returns $files[1] = 'opensslcerts*.pem'
or
$path = \\openssl\\certs;
@files = <$path\\*.pem>;
returns $files[1] = 'opensslcerts*.pem'
but
@files = </openssl/certs/*.pem>;
returns the correct .pem file list array....
Also get the same results if you use glob(" ").
Seems this function is removing path separators if they don't face the
'right' way, even when 'escaped'...
Can anyone confirm?
Norm
Continue reading on narkive:
Loading...