Help for this page

Select Code to Download


  1. or download this
    my $out_fh;
    open($out_fh, ">", "myfile.xml") or die "Cannot open myfile.xml - $!";
    
  2. or download this
    print {$out_fh} "<greeting>Hello World!</greeting>\n";
    
  3. or download this
    open(STDOUT,">","myfile.xml") or die "Cannot redirect STDOUT to myfile
    +.xml - $!";