|Do you know where your variables are?|
Re: (2) scratching the surface of File::Temp (unlink w/o $filehandle ?)by ybiC (Prior)
|on Feb 10, 2001 at 09:45 UTC||Need Help??|
Like you point out, a, if $fh is used instead of TMP, I lose $filehandle as soon as $fh is closed. So how can I unlink0 with no $filehandle without generating "Use of uninitialized value @ /usr/local/lib/site_perl/File?Temp.pm line (1525|1584), <STDIN> chunk 1" ?
I wouldn't be surprised if it's explained in the module's pod and I'm just not picking up on it.
striving for Perl Adept
(it's pronounced "why-bick")
Update: Good monk a says below "not supposed to close $fh... unlink0 will handle..."
Update #2: But if I don't "close $fh" then "print $fh "\nS'working?\n" or die;" doesn't really happen. So I'm still doing something wrong 8^(