in reply to Re^2: Sort alphabetically from file
in thread Sort alphabetically from file
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;
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Sort alphabetically from file
by edujs7 (Novice) on Jun 15, 2019 at 10:24 UTC | |
by james28909 (Deacon) on Jun 15, 2019 at 11:19 UTC | |
by haukex (Archbishop) on Jun 16, 2019 at 09:11 UTC | |
by james28909 (Deacon) on Jun 18, 2019 at 00:42 UTC | |
by hippo (Archbishop) on Jun 18, 2019 at 09:03 UTC | |
by haukex (Archbishop) on Jun 19, 2019 at 19:40 UTC | |
|