in reply to How to input variable value from a file?
Then the following would work:servername-001 imm-servername-001.companyname.com servername-002 imm-servername-002.companyname.com
open my $fh, $serverfile or die "Can't open $serverfile: $!"; my @services = map {chomp; [split]} <$fh>; close $fh;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to input variable value from a file?
by perl_newbie99 (Initiate) on Jun 09, 2011 at 20:19 UTC | |
by wind (Priest) on Jun 09, 2011 at 20:25 UTC |