Syntactic Confectionery Delight | |
PerlMonks |
Re5: (crazyinsomniac)Re: Any way to binmodeby bikeNomad (Priest) |
on Aug 02, 2001 at 20:13 UTC ( [id://101696]=note: print w/replies, xml ) | Need Help?? |
How could my shell get the newlines? Look more closely... I used Data::Dumper so I could display the control characters in the output and so not be subject to output character translation. There's no difference in the output when I redirect to a file. Note that there is no output past the control-Z. If you're trying the script yourself, make sure to binmode STDOUT so that you don't turn "\n" back into "\r\n". And try a file with a control-Z in it.
In Section
Seekers of Perl Wisdom
|
|