in reply to Re: Multiple file input into a perl script
in thread Multiple file input into a perl script
Only there is a new problem; my output file list reads like this:use File::DosGlob qw(bsd_glob); # to get sane whitespace semantics my $pattern = '/home/kelder/files/*.txt'; @ARGV = glob $pattern;
What ends up happening is that in my "results" file, where I print my counts, the order of the inputs is messed up.Ai0.txt Ai1.txt Ai2.txt ... Ai10.txt Ai11.txt
How do I fix this ordering? Can I input the files in the order they are in the directory with another method? Thanks for all of the help so far!!Output: File1 File10 File11 File2
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Multiple file input into a perl script
by Corion (Patriarch) on Sep 30, 2008 at 19:58 UTC | |
by kelder (Novice) on Sep 30, 2008 at 20:25 UTC | |
by Corion (Patriarch) on Sep 30, 2008 at 20:33 UTC |