- or download this
# Instead of
>perl -w myscript.pl -some -command -line
# you invoke it as
>perl -w myscript.pl -some -command -line >output.xml
- or download this
BEGIN {
my $outfile = 'output.xml';
...
open STDOUT, ">", $outfile
or die "Couldn't create '$outfile': $!";
};
- or download this
# Instead of
sub frobnitz {
...
# ...
print frobnitz($in);