[ Follow Ups ] [ Post Followup ] [ Discussions at the Paneris system node ]

Code review

Posted by TimP on Fri Sep 11 11:53:42 1998

Distribution: WilliamC programmers
Boys,

I had terrible problems with Filehandles and my
last night.

The resulting code was:

sub open_relative_url_write
{
my $relative_url = shift;
unless($root){$root = &get_root};
&open_file_write("$root$relative_url");
}

sub open_file_write
{
local $file = shift;
use FileHandle;
$fh = new FileHandle;
$fh->open(">$file") || &cgi_die("Cannot open file for write ($file)");
return $fh;
}

If I use my instead of local,
and before I was using FileHandle I got into an awful mess.

So is it right now ?

yours
TimP




Follow Ups:




Post a Followup

Name:
E-Mail:
Subject:
Circulation:
AlexH ColinR JackM JennyP
KeithH KrugerD MikeC MylesC
NicR PatickG TimJ TimP
WilliamC WilliamS outcaa paneris
programmers
Message:


[ Follow Ups ] [ Post a Followup ] [ Discussions at the Paneris system node ]