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

Re: Newbie Question: Permission Denied

by pc88mxer (Vicar)
on Jul 18, 2008 at 06:26 UTC ( [id://698520]=note: print w/replies, xml ) Need Help??


in reply to Newbie Question: Permission Denied

The error is just Permission denied, and you are getting it because you can't write to $fname or $fname doesn't exist and you can't create it.

Just debug the problem a little further by inserting these statements before the call to open():

die "file '$fname' does not exist" unless (-e $fname); die "file '$fname' is not a regular file" unless (-f $fname); die "file '$fname' is not writable" unless (-w $fname);
That should tell you what's wrong.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://698520]
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: (3)
As of 2024-03-29 06:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found