laziness, impatience, and hubris | |
PerlMonks |
Re: filter the files in a folder on the basis of some variable present in themby Discipulus (Canon) |
on Jun 10, 2015 at 08:34 UTC ( [id://1129820]=note: print w/replies, xml ) | Need Help?? |
mmh not sure if i have understood all your question.. anyway i have some hints for you. First your method to get the file list ($i = 6000000) is, mmh how to say, bizarre? Perl has a glob function, use it. Second, never use bareword filehandles (FH) use the lexical form. Third if you really have so much files then copy a little bounch of them (with some positive case included) in a development directory and write your script against them, so you'll have a fast feedback. A basic approch can be similar to this pseudo-code
HtH L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|