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