in reply to 'strict refs' + 'strict sub' = suck.
and this is the error I get:#--GETAVATARS--# sub getavatars { my $id = $_[0]; my $filename = "./avatars/$id/avatar.dat"; open (FILE, "$filename"); my @avatars = <FILE>; close(FILE); return(FILE); }
Content-type: text/html ERROR Bareword "FILE" not allowed while "strict subs" in use at ./modules/ad +min/users.cgi line 161. Compilation failed in require at admin.cgi li +ne 54.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: 'strict refs' + 'strict sub' = suck.
by liz (Monsignor) on Oct 24, 2003 at 20:51 UTC | |
|
Re: Re: 'strict refs' + 'strict sub' = suck.
by toonski (Beadle) on Oct 24, 2003 at 20:47 UTC | |
by diotalevi (Canon) on Oct 24, 2003 at 22:23 UTC | |
by graff (Chancellor) on Oct 25, 2003 at 17:25 UTC |