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?
🦛
In reply to Re: How to call particular parameter from another configuration file in perl
by hippo
in thread How to call particular parameter from another configuration file in perl
by Prakee
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |