File::Glob bug ?
From: Jaap Karssenberg (j.g.karssenberg_at_student.utwente.nl)
Date: 06/28/04
- Next message: Peter Scott: "Re: How to use 2 DIFFERENT VERSIONS of the SAME MODULE in the same perl program ?"
- Previous message: Looked: "Lisa & Maggie Simpson secretly make love with Marge"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Mon, 28 Jun 2004 03:39:09 +0200
The following script:
use File::Glob ':glob';
my @test = (
'{random string}',
'\\{random string\\}'
);
for (@test) {
print "glob: $_ ==> ";
print bsd_glob($_, GLOB_TILDE | GLOB_BRACE | GLOB_NOCHECK);
print "\n";
}
has the following output:
glob: {random string} ==> random string
glob: \{random string\} ==> \random string\
I believe this to be wrong, because since I have no file called 'random
string' and the GLOB_NOCHECK option is in effect the _original_ pattern
should be returned.
Anyone any idea what happens there and/or if I am right when I think
this behaviour is wrong and/or who is responsible and/or who I should
bug with this ?
-- ) ( Jaap Karssenberg || Pardus [Larus] | |0| | : : http://pardus-larus.student.utwente.nl/~pardus | | |0| ) \ / ( |0|0|0| ",.*'*.," Proud owner of "Perl6 Essentials" 1st edition :) wannabe
- Next message: Peter Scott: "Re: How to use 2 DIFFERENT VERSIONS of the SAME MODULE in the same perl program ?"
- Previous message: Looked: "Lisa & Maggie Simpson secretly make love with Marge"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|