Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: open file does not work for externally defined filename

by kyle (Abbot)
on Jan 07, 2008 at 20:25 UTC ( [id://660929]=note: print w/replies, xml ) Need Help??


in reply to open file does not work for externally defined filename

Let Perl tell you what the error is.

open my $fh, '>>', $file or die "Can't append to '$file': $!";

Note the use of three argument open and $! to get the error (see perlvar).

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others goofing around in the Monastery: (4)
As of 2024-05-27 15:54 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found