in reply to Perl6: Capturing newline in a string
I haven't had a play with Perl 6 yet so can't help there. There is another way to create a Windows-ending file though.
$ perl -Mstrict -Mwarnings -E ' open my $outFH, q{>:crlf}, \ my $outFile or die $!; say $outFH q{Hi}; close $outFH or die $!; say sprintf q{%02x}, ord for split m{}, $outFile;' 48 69 0d 0a $
Update: The code above was run on Linux Mint 17 with the perl 5.18.2 interpreter.
Cheers,
JohnGG
|
|---|