|laziness, impatience, and hubris|
Passing Parameters in XML::Simpleby PerlScholar (Acolyte)
|on Oct 06, 2010 at 08:18 UTC||Need Help??|
PerlScholar has asked for the
wisdom of the Perl Monks concerning the following question:
I’m using XML simple for my config and normally you would declare the config path as below:
my $config = XMLin(‘myConfig.xml’);
Is there a way of passing the config as a parameter to be entered at the command line? I was thinking something like the code below but it didn’t seem to work.
my $config = XMLin($ARGV);
Would appreciate any help. Many thanks!