Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re^2: Win32: Setting a layer with binmode causes problem with close() on Windows (warnings)

by Anonymous Monk
on Jun 17, 2013 at 10:28 UTC ( [id://1039325]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    print join ' ', 1, PerlIO::get_layers($fh), "\n";
    binmode($fh, ':raw:perlio') or warn "UHOH $! \n$^E \n$@\n ";
    ...
    #~ binmode($fh, ':raw:crlf:perlio') or warn "UHOH $! \n$^E \n$@\n ";
    binmode($fh, ':pop:pop:win32') or warn "UHOH $! \n$^E \n$@\n ";
    print join ' ', 6, PerlIO::get_layers($fh), "\n";
    
  2. or download this
    1 unix crlf
    2 unix crlf perlio
    ...
    6 unix crlf perlio
    6 unix crlf
    6 win32
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others rifling through the Monastery: (3)
As of 2024-04-16 18:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found