pglenski has asked for the wisdom of the Perl Monks concerning the following question:
foreach $DIR qw(TEST_DIR WINS_DIR) { if (defined($ENV{"$DIR"})) { $filename = $ENV{"$DIR"} . "/common/wins.ini"; if (-s $filename) { open (IN,$filename); chomp(@list=<IN>); close(IN); } } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Adding to array
by GrandFather (Saint) on Feb 28, 2007 at 20:29 UTC | |
by pglenski (Beadle) on Feb 28, 2007 at 20:55 UTC | |
by GrandFather (Saint) on Feb 28, 2007 at 21:05 UTC | |
|
Re: Adding to array
by Fletch (Bishop) on Feb 28, 2007 at 20:24 UTC | |
|
Re: Adding to array
by mreece (Friar) on Feb 28, 2007 at 20:33 UTC | |
|
Re: Adding to array
by holli (Abbot) on Mar 01, 2007 at 08:31 UTC | |
|
Re: Adding to array
by wojtyk (Friar) on Feb 28, 2007 at 20:30 UTC | |
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 |