Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Re: Has a filehandle been binmode'd

by derby (Abbot)
on Feb 27, 2006 at 13:53 UTC ( [id://533019]=note: print w/replies, xml ) Need Help??


in reply to Has a filehandle been binmode'd

Hmmm ... well you could try Fcntl; however, it may not be supported on your platform:

!#/usr/bin/perl use Fcntl; open( FH, "<", "/bin/cat" ) or die "cannot open file: $!\n"; $flags = fcntl(FH, F_GETFL, 0) or die "Can't get flags for the file: $ +!\n"; if( $flags | O_BINARY ) { print "OPEN FOR BINARY\n" }
-derby

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (5)
As of 2024-04-24 12:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found