in reply to Can't pass filehandle value
Update: mis-interpreted the <<FRED bit. Ouch.use strict; use IO::File; my $var1='test'; my $var2='test2'; my $f = new IO::File "$var1/$var2/blah.conf","w" or die "Can't create +blah"; print $f <<FRED blah blah ... FRED ;
You are trying to open a file before you assign the file name? That's probably why your script didn't work in the first place.open HANDLE, ">$HANDLE" or die; $HANDLE="$var1/$var2/blah.conf";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Can't pass filehandle value
by skooter (Initiate) on Nov 06, 2003 at 03:05 UTC | |
by Roger (Parson) on Nov 06, 2003 at 03:08 UTC |