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&&&'