Help for this page

Select Code to Download


  1. or download this
    open(my $fh, '>:utf8', 'out.xml') || die "Failed to open file";
    print $fh $str; 
    close($fh) || die "Failed to close file";
    
  2. or download this
    use XML::DOM;
    use open OUT => ':utf8';
    use open ':std';
    # as before...
    print $str;