Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    die "can't open output file: $!" unless open FH, ">$output";
    printf(FH "%s\n", "there won't be any junk characters in this version"
    +);
    close FH;
    
  2. or download this
    use strict;
    use warnings;
    ...
    printf(FH "%s\r\n", "I wonder any junk charcter will be printed to the
    + file on windows");
    close FH;