laziness, impatience, and hubris | |
PerlMonks |
Glob strange behaviorby tamaguchi (Pilgrim) |
on Aug 21, 2006 at 12:28 UTC ( [id://568521]=perlquestion: print w/replies, xml ) | Need Help?? |
tamaguchi has asked for the wisdom of the Perl Monks concerning the following question:
In my folder C:/dataset/ I have the following files: 20051026ng3_Well A1_21593.pkl 20051026ng3_Well A2_21593.pkl 20051026ng3_Well A3_21593.pkl 20051026ng3_Well A4_21593.pkl 20051026ng3_Well A5_21593.pkl 20051026ng3_Well A6_21593.pkl 20051026ng3_Well A7_21593.pkl 20051026ng3_Well A8_21593.pkl 20051026ng3_Well A9_21593.pkl To search for filenames containing alphanumeric signatures like A1, A2 etc. I have written the following: The ouput I get is following: C:/dataset/20051026ng3_Well A1_21593.pkl A1 Not found A2 C:/dataset/20051026ng3_Well A3_21593.pkl A3 Not found A4 C:/dataset/20051026ng3_Well A5_21593.pkl A5 Not found A6 C:/dataset/20051026ng3_Well A7_21593.pkl A7 Not found A8 C:/dataset/20051026ng3_Well A9_21593.pkl A9 I wonder how this small code could generate this results why are not all filenames containing the signatures A1, A2 etc. found? Thank you for your help. 2006-08-21 Retitled by holli, as per Monastery guidelines
Back to
Seekers of Perl Wisdom
|
|