Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re^2: Broken Function

by carlriz (Beadle)
on Apr 04, 2014 at 13:34 UTC ( #1081137=note: print w/replies, xml ) Need Help??


in reply to Re: Broken Function
in thread Broken Function

I get something like this: cat: /proc/cpuinfo: No such file or directory print() on closed filehandle $FILE_H at itworks.pl line 91. I am expecting my function to create a new file whether or not the file exists. But, my major hurdle is the second error message.

Replies are listed 'Best First'.
Re^3: Broken Function
by Anonymous Monk on Apr 04, 2014 at 14:35 UTC

    If you had not commented out your "or die "Could not open file: $!\n" code, then the reason why the file handle did not open would have been printed.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1081137]
help
Chatterbox?
and snow settles gently...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (3)
As of 2016-12-03 02:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (52 votes). Check out past polls.