![]() |
Practical mod_perl / HTML Version / | ![]() |
||
![]() |
||||
![]() |
![]() |
|||
![]() |
![]() |
|||
![]() |
||||
|
|
||||
![]() |
![]() |
|||
![]() |
22.3.7. Use of uninitialized value at (eval 80) line 12 |
![]() |
||
![]() |
||||
![]() |
![]() |
![]() |
||
![]() |
||||
If you see this message, your code includes an undefined variable that you have used as if it was already defined and initialized. For example:
my $param = $q->param('test');
print $param;
You can fix this fairly painlessly by just specifying a default value:
my $param = $q->param('test') || '';
print $param;
In the second case, $param will always be defined, either with $q->param('test')'s return value or the default value the empty string ('' in our example).
 
Continue to:
mod_perl, modperl, Apache, perl, cgi, html, mod_perl, e-commerce, scalability, free, open source, OSS, apache, squid, high availability, modperl, linux, unix, Web, www, mod_perl, webserver, admin, apache, book, webmaster, tools, modperl, guide, docs, documentation, help, mod_perl, perl, information, apache, script, errata, eric cholet, perl, apache, mod-perl, stas bekman, mod_perl, cool, perl, Apache, performance, speed, choice
![]() |
Other projects to check out: meta-religion.com is for those interested in Religious, Spiritual and Esoteric Phenomena. i-want-a-better.com is a community of people discussing what they would like to be improved in their lives and things they use and interact with. You may also want to find a healer in your area or read articles on variety of topics.