Page is a not externally linkable
- Code, Content, and Presentation
-- Perl Server Side CGI Scripting
---- CGI displays Perl Script


lappert2001 - 7:58 pm on Feb 28, 2012 (gmt 0)


File owner was username, group was users, as in
"chown username:users *.*"

I changed to www-data:www-data *.* just to see if that might get it working. Sorry I wasn't clear if you thought the actual filenames were username or users.

Executing "perl srch.cgi":

perl srch.cgi
$* is no longer supported at cgi-lib.pl line 97.
Content-type: text/html

<HTML><HEAD>
<TITLE>Page Title</TITLE></head><body BGCOLOR="ffffe7" text="000000">


Same error message executing cgi-lib.pl

As to the error, looking at cgi-lib (line 97 is "$old = $*; $* =1;"

sub PrintVariables {
local (%in) = @_;
local ($old, $out, $output);
$old = $*; $* =1;
$output .= "<DL COMPACT>";
foreach $key (sort keys(%in)) {
foreach (split("\0", $in{$key})) {
($out = $_) =~ s/\n/<BR>/g;
$output .= "<DT><B>$key</B><DD><I>$out</I><BR>";
}
}
$output .= "</DL>";
$* = $old;


Thread source:: http://www.webmasterworld.com/perl/4422787.htm
Brought to you by WebmasterWorld: http://www.webmasterworld.com