Help for this page

Select Code to Download


  1. 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
    
  2. or download this
    BEGIN {
      my $outfile = 'output.xml';
    ...
      open STDOUT, ">", $outfile
        or die "Couldn't create '$outfile': $!";
    };
    
  3. or download this
    # Instead of
    sub frobnitz {
    ...
    
    # ...
    print frobnitz($in);