|
|
| laziness, impatience, and hubris | |
| PerlMonks |
Re: Loop Breakby ww (Chancellor) |
| on Jan 19, 2012 at 16:18 UTC ( #948804=note: print w/ replies, xml ) | Need Help?? |
|
Angle_brackets don't work that way. To get an array of filenames, see open, Of course, you could make your list with ls -la /dirpath/dir/ > file_of_namesBut this is, after all, a perl forum. Moving on, your regex would (if the script worked) catch files with names like pqr.cobol so you might consider this:
For the record, though, your regex does achieve a good many proper exclusions bzz.doc \Update: fixed brain-fart in para 1
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||