*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
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 Jaquetsub loadPage { my $page = ""; $page = $query->param("page"); if ($page eq 'main') { loadMainPage(); return 1; } }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: string initialization error
by perlancar (Hermit) on Dec 21, 2018 at 14:25 UTC | |
by haukex (Archbishop) on Dec 21, 2018 at 15:44 UTC | |
Re: string initialization error
by hippo (Bishop) on Dec 21, 2018 at 15:15 UTC | |
Re: string initialization error
by pryrt (Abbot) on Dec 21, 2018 at 14:03 UTC | |
Re: string initialization error
by soonix (Canon) on Dec 21, 2018 at 14:00 UTC | |
by *alexandre* (Scribe) on Dec 21, 2018 at 22:31 UTC | |
by Anonymous Monk on Dec 21, 2018 at 23:16 UTC |
Back to
Seekers of Perl Wisdom