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

Re: Using Variables in Path Names

by fuzzysteve (Beadle)
on Nov 28, 2001 at 03:52 UTC ( [id://127961]=note: print w/replies, xml ) Need Help??


in reply to Using Variables in Path Names

don't have a solution for you, but i do have a suggestion.
replace
open( OUTFILE, ">>$filename" ) or die ( "no go miss "); with open( OUTFILE, ">>$filename" ) or die ( "no go miss: $!");
That way you can get an error messager that might help you track down the problem.

Thought that comes to mind. how does perl deal with appending to a file that doesn't exist? I'd have thought it just created it, but I'm not sure.

Replies are listed 'Best First'.
Re: Re: Using Variables in Path Names
by qslack (Scribe) on Nov 28, 2001 at 05:07 UTC
    Hi,
    Thought that comes to mind. how does perl deal with appending to a file that doesn't exist? I'd have thought it just created it, but I'm not sure.

    From perldoc -f open:
    If the filename begins with '>>', the file is opened for appending, again being created if necessary.

    I was curious too and just thought I'd share my findings. Quinn Slack
    perl -e 's ssfhjok qupyrqs&&tr sfjkohpyuqrspitnrapj"hs&&eval&&s&&&'

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (3)
As of 2024-04-25 19:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found