in reply to Re: Push, Matching, and File::Find
in thread Push, Matching, and File::Find
Update: well I wasn't exactly sure whether there could be more than one category.txt type file out there. Anyway OP has some solid code (And I really do like the ikegami code). I guess since I'm commenting more, I would point out to the op that "return" looks like what was intended rather than "next" at top of sub.push(@file_list, $File::Find::name) if /\.(?:txt|jpg|gif)\z/i && !/category\.txt\z/i;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Push, Matching, and File::Find
by ikegami (Patriarch) on Feb 17, 2010 at 22:51 UTC |