Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re: Override "null filehandle"

by BillKSmith (Monsignor)
on Sep 06, 2023 at 14:14 UTC ( [id://11154277]=note: print w/replies, xml ) Need Help??


in reply to Override "null filehandle"

Thanks for all your replies. I believe that any one of them would have solved my problem. A few days ago I wanted to include code in my post Re^2: Why is my code producing weird output?. That code would have made no changes to the OP's code except to add input that explicitly showed the windows line endings. That would have duplicated his problem. Adding binmode STDIN, ':crlf'; would have fixed it. When I could not make the demo work, I settled for the verbal reply. Only later did I think to ask how I might have done it.

Had I known all your answers, I probably would have chosen to close and reopen STDIN because it best describes my intention.

Bill

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others imbibing at the Monastery: (2)
As of 2026-04-10 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.