in reply to How to call particular parameter from another configuration file in perl
You could load the configuration file with Config::General:
use Config::General; my %CONF = Config::General->new ('path/to/LED.cfg')->getall (); my $pwd = `(ApID=$CONF{ApID} $path/CA.sh)`;
Why are you using a subshell? Would it not be more efficient without?
🦛
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to call particular parameter from another configuration file in perl
by Prakee (Initiate) on Jun 03, 2021 at 14:46 UTC |