in reply to Adding to array
foreach $DIR qw(TEST_DIR WINS_DIR) { if (defined($ENV{"$DIR"})) { $filename = $ENV{"$DIR"} . "/common/wins.ini"; if (-s $filename) { open (IN,$filename); push(@list,<IN>); chomp($list[$#list]); close(IN); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Adding to array
by Anno (Deacon) on Feb 28, 2007 at 20:41 UTC | |
by GrandFather (Saint) on Feb 28, 2007 at 20:54 UTC | |
by Anno (Deacon) on Feb 28, 2007 at 21:27 UTC |