Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: Broken Function

by BrowserUk (Pope)
on Apr 04, 2014 at 13:22 UTC ( #1081130=note: print w/ replies, xml ) Need Help??


in reply to Broken Function

it doesn't really work as intended.

That is a lousy error description.

  • What does it do that isn't intended?
  • And/or: What doesn't it do that is intended?

With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority".
In the absence of evidence, opinion is indistinguishable from prejudice.


Comment on Re: Broken Function
Re^2: Broken Function
by carlriz (Beadle) on Apr 04, 2014 at 13:34 UTC

    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.

      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://1081130]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others lurking in the Monastery: (13)
As of 2014-10-01 21:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    What is your favourite meta-syntactic variable name?














    Results (38 votes), past polls