|
|
| Perl: the Markov chain saw | |
| PerlMonks |
Re^7: Listing of files using globby MidLifeXis (Prior) |
| on Jan 05, 2012 at 13:26 UTC ( #946394=note: print w/ replies, xml ) | Need Help?? |
|
> Any errors or wrong approach??
Update: Since the OP is using $& to populate the hash, and the processing loop uses the keys of the hash as the name of the file, the newline from the file should not be included in the hash key. Nice catch choroba I wonder what the line endings are in the data file. Is it possible that the file is in DOS line ending format? In which case, the chomp (and $&?) would not do the right thing. --MidLifeXis
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||