http://qs1969.pair.com?node_id=1227557

*alexandre* has asked for the wisdom of the Perl Monks concerning the following question:

Hi, I'm currently rewriting perl script, and I got an error while I'm been running it. Here is my code
sub loadPage { my $page = ""; $page = $query->param("page"); if ($page eq 'main') { loadMainPage(); return 1; } }
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