in reply to Passing Parameters in XML::Simple

my $config = XMLin($ARGV[0]); is correct. It will use the first argument passed to the script, assuming @ARGV hasn't been modified.