Ashes.cfg has asked for the wisdom of the Perl Monks concerning the following question:
The Output I get is really strange..Consider I have 100 files(numbered 1 thru 100)...somehow the way the files are accessed issub messages { my $dir = shift or return; my @messages; find(sub { next if /^\.+$/ || -d $File::Find::name; push @messages, $ +File::Find::name }, $dir); return @messages; }
I think I am making a mistake in the regex.Holy Monks...Kindly help me.... The Rest of my code is working correctly. Regards AshesFile 1 File 10 File 100 File 2 File 20 File 21 . . and so on
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: using File::Find for reading files in order
by ysth (Canon) on Feb 04, 2009 at 06:50 UTC | |
by grinder (Bishop) on Feb 04, 2009 at 07:27 UTC | |
by Ashes.cfg (Initiate) on Feb 04, 2009 at 06:57 UTC | |
|
Re: using File::Find for reading files in order
by jwkrahn (Abbot) on Feb 04, 2009 at 10:23 UTC | |
|
Re: using File::Find for reading files in order
by leocharre (Priest) on Feb 04, 2009 at 14:37 UTC | |
|
Re: using File::Find for reading files in order
by hbm (Hermit) on Feb 04, 2009 at 13:50 UTC | |
by merlyn (Sage) on Feb 04, 2009 at 15:14 UTC | |
by hbm (Hermit) on Feb 04, 2009 at 16:37 UTC |