Maybe (probably) in your head there's a connection between INFILE and $source_file, but not in your script.open (INFILE, "$ARGV[1]") or die "$ARGV[1] cannot be openned : $!"; while ($source_file =~ /(\d)\s+(\d)\s+(\d)\s+(\w+)/)
How do you know your $ARGV[0] really equals "-a"?if ($ARGV[0] eq "-a")
Global symbol "$x" requires explicit package nameshould read
Do you really want "$x" to be a global symbol? Better declare it with my
use strict; use warnings; use diagnostics;
In reply to Re^3: Sort alphabetically from file
by soonix
in thread Sort alphabetically from file
by edujs7
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |