Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Re(3):: opening new file in different directory

by IraTarball (Monk)
on Oct 23, 2001 at 20:48 UTC ( [id://120836]=note: print w/replies, xml ) Need Help??


in reply to Re(3):: opening new file in different directory
in thread opening new file in different directory

Not to be an ass, but how would this help us? It seems the germane info is in $! not the script name and line number.

I'm really asking and not trying to fish slap you.

Ira,

"So... What do all these little arrows mean?"
~unknown

Replies are listed 'Best First'.
Re: Re: Re(3):: opening new file in different directory
by buckaduck (Chaplain) on Oct 24, 2001 at 00:43 UTC
    Look at it again:
    open(WRITE,">$file") or die( "Cannot write to $file: $!" );
    You are missing the point of his request. He wants to see what $file is, in addition to the $! variable. Why? Because the error "No such file or directory" begs the question "What file is the program trying to create, and in what directory?"

    buckaduck

      Goip! Read carefully and ye shall find knowledge.
      Thanks for humoring me. :)

      Ira,

      "So... What do all these little arrows mean?"
      ~unknown

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2024-03-29 02:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found