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
|
- From: Jon Nelson <dotcop@gmail.com>
- To: "Philadelphia Linux User's Group Discussion List" <plug@lists.phillylinux.org>
- Subject: [PLUG] Stupid Perl/CGI Questions
- Date: Wed, 1 Dec 2010 14:04:00 +0000
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:received:date:message-id :subject:from:to:content-type; bh=J+wwsp+B/dX2/pLpXQiUn0LkzuPOWREE+wvIoRkvDAo=; b=vyp2ENKktAOqvurwYCk/f2l7B5VOusLRVG2AidALJqKo6YyMzBISebLPWsM9b+YZeD rdtEC72ip+v8E3qTlwpC2vdejPCK8ZZYLiY0NIAe7EerdqLm/OnoWf1dP0z/0YwClp/p 8JNImO5WeUSPOIy/8Ja124MjHdJbi5+ADxtXs=
- Reply-to: Philadelphia Linux User's Group Discussion List <plug@lists.phillylinux.org>
- Sender: plug-bounces@lists.phillylinux.org
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:
<code>
print $cgi->radio_group(-name => 'search',
-values => ["getImages",
"recentFiles",
"desktop",
"regInfo",
"netSearch",
"ffInfo",
"google",
"usbInfo",
"p2pInfo"],
-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"});
</code>
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?
Thanks,
Jon
___________________________________________________________________________
Philadelphia Linux Users Group -- http://www.phillylinux.org
Announcements - http://lists.phillylinux.org/mailman/listinfo/plug-announce
General Discussion -- http://lists.phillylinux.org/mailman/listinfo/plug