perl_newbie99 has asked for the wisdom of the Perl Monks concerning the following question:
The question is how can I change this script to read following part from an external text file in the same variable name as mentioned above:my @services = ( #[ 'servername-001', '10.68.197.91', 1666 ], [ 'servername-001', 'imm-servername-001.companyname.com' ], [ 'servername-002', 'imm-servername-002.companyname.com' ], );
I know it is not that difficult but I dont have perl expertise either :)) So, any help will be appreciated. Thanks.[ 'servername-001', 'imm-servername-001.companyname.com' ], [ 'servername-002', 'imm-servername-002.companyname.com' ],
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: How to input variable value from a file?
by wind (Priest) on Jun 09, 2011 at 18:54 UTC | |
by perl_newbie99 (Initiate) on Jun 09, 2011 at 20:19 UTC | |
by wind (Priest) on Jun 09, 2011 at 20:25 UTC | |
|
Re: How to input variable value from a file?
by mr_mischief (Monsignor) on Jun 09, 2011 at 20:03 UTC |