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

Re^2: Inappropriate I/O control operation

by cormanaz (Deacon)
on Sep 26, 2017 at 17:02 UTC ( [id://1200133]=note: print w/replies, xml ) Need Help??


in reply to Re: Inappropriate I/O control operation (Updated)
in thread Inappropriate I/O control operation

Thanks for the suggestion. I did print $! in the statement underneath the open in the original script. But I modified the open per your suggestion. It didn't die on any of the opens but still gave the error in $! in the following line. Then I tried reading and printing the first line of each file and it worked. Strange.

Replies are listed 'Best First'.
Re^3: Inappropriate I/O control operation
by dave_the_m (Monsignor) on Sep 26, 2017 at 17:07 UTC
    $! is only meaningful after an error. Its value after a successful open is unspecified and could be anything.

    Dave.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (4)
As of 2024-03-28 15:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found