Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: File open issue

by davido (Archbishop)
on Dec 19, 2012 at 19:09 UTC ( #1009604=note: print w/ replies, xml ) Need Help??


in reply to File open issue

What is the warning that you get? And when you use  or die $!;, what is the output?


Dave


Comment on Re: File open issue
Download Code
Replies are listed 'Best First'.
Re^2: File open issue
by Anonymous Monk on Dec 19, 2012 at 19:12 UTC
    What about this:
    if(-r $tempfile) { open (TMPFILE, "$tempfile") or die "Can't open $tempfile: $!"; (@tmpfile) = <TMPFILE>; close TMPFILE; }else { $nofile = "1"; }

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others meditating upon the Monastery: (6)
As of 2015-08-01 03:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (285 votes), past polls