Jon Nelson on 1 Dec 2010 06:04:06 -0800

[Date Prev] [Date Next] [Thread Prev] [Thread Next] [Date Index] [Thread Index]

[PLUG] Stupid Perl/CGI Questions

Hi all,

I am sure there has to be an easy fix for my problem, but my googling has not been fruitful.  This page has rendered without error in the past, but now will not and I get the following error repeated 9 times:

    [Tue Nov 30 15:45:22 2010] driveInfo.cgi: Use of uninitialized value in concatenation (.) or string at (eval 25) line 23.

Line 23 is in the middle of my opening comments in driveInfo.cgi so what does "(eval 25) line 23" mean?.  As far as I can tell the offending code is:

 print $cgi->radio_group(-name      => 'search',
                            -values    => ["getImages",
                            -default   => 'foo',
                            -linebreak => 'true',
                            -labels    => {getImages => "Find Images & Movies",
                                           recentFiles => "Recently Viewed Files",
                                           desktop => "Desktop Files",
                                           regInfo => "Windows System Information",
                                           netSearch => "Internet Explorer History",
                                           ffInfo => "Firefox History",
                                           google => "Google Toolbar Searches",
                                           usbInfo => "USB Device Information",
                                           p2pInfo => "P2P & Password File Collection"});

I have tried storing the labels in a hash, but got the same results.  Any ideas?

If I run the script from the command line I get the HTML I was expecting, but it doesn't render when run from the server.  Is that due to the above errors?


Philadelphia Linux Users Group         --
Announcements -
General Discussion  --