perlquestion
*alexandre*
Hi,
I'm currently rewriting perl script, and I got an error while I'm been running it.
Here is my code
<code>
sub loadPage {
my $page = "";
$page = $query->param("page");
if ($page eq 'main') {
loadMainPage();
return 1;
}
}
</code>
My error message is the following :
[Fri Dec 21 14:32:11 2018] [error] [client 127.0.0.1] [Fri Dec 21 14:32:11 2018] helloWorld.cgi: Use of uninitialized value $page in string eq at /home/alexandre/apache/cgi-bin/helloWorld.cgi line 41.
Any idea ?
Thanks in advance.
Alexandre Jaquet