No such thing as a small change | |
PerlMonks |
Re: Giving the input file to XMLin() from the command line as an argumentby Eliya (Vicar) |
on Jan 24, 2012 at 12:36 UTC ( [id://949670]=note: print w/replies, xml ) | Need Help?? |
XMLin('$ARGV[0]/system.xml') That should work just fine if you use double quotes instead of single quotes. (Single quotes don't interpolate...) As for passing a file handle, you can say
where $fh is a lexical file handle (i.e. open my $fh, ...), or an IO::File file handle, and \*FH is a ref to an old-style glob file handle.
In Section
Seekers of Perl Wisdom
|
|