good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^2: Regular expression to list all files of type in folderby LanX (Saint) |
on Dec 05, 2012 at 23:53 UTC ( [id://1007430]=note: print w/replies, xml ) | Need Help?? |
> Is there perhaps a file called "0" in the directory? That would make the loop prematurely break off. Thankfully this doesn't happen!!! (I was ready to complain about rotten implementations...=) Probably saved by one of these special magic behaviors of while UPDATE:here it is from perlop#I/O-Operators The following lines are equivalent: doesn't mention readdir but I think it's a similar case (and a documentation hole) Cheers Rolf
In Section
Seekers of Perl Wisdom
|
|