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

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

by rovf (Priest)
on Jun 17, 2013 at 14:25 UTC ( [id://1039378]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    open(my $fh,'>:unix','abc.txt') or die $!; 
    print $fh "one line\n"
    
  2. or download this
    use strict;
    use warnings;
    ...
    close $fh;
    # No error message on unlink
    unlink 'abc.txt' or die $!;
    
  3. or download this
    use strict;
    use warnings;
    ...
    close $fh;
    # Error message on unlink
    unlink 'abc.txt' or die $!;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others contemplating the Monastery: (4)
As of 2024-04-20 02:44 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found