Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re5: (crazyinsomniac)Re: Any way to binmode

by bikeNomad (Priest)
on Aug 02, 2001 at 20:13 UTC ( #101696=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Re: (crazyinsomniac)Re: Any way to binmode
in thread Any way to binmode <>

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.
  • Comment on Re5: (crazyinsomniac)Re: Any way to binmode

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://101696]
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (4)
As of 2021-05-15 23:52 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (151 votes). Check out past polls.