Re: Warnings -- used only once: possible typo at
Brought to you by:
jeffmurphy
|
From: G. D. F. <gd...@ui...> - 2003-01-02 22:21:31
|
Simple PERL warnings - you set a variable but never use it again, so PERL
wonders if maybe you made a typo (misspelled a variable) somewhere. I
don't understand why you have included here the code for lines 62-65.
Zandi Patrick S TSgt AFRL/IFOSS wrote:
> In apache -- I have a perl script that is receiving errors or warnings @
> error_log
> --- Are the below normal ? Also the $ BLUE is the actually line of
> code that is whining .,..
>
> [DATE] survey2.pl: Name "main::cellbg" used only once: possible typo at
> /apache/cgi-bin/survey2.pl line 182.
> $cellbg = "";
> [DATE] survey2.pl: Name "main::wwwserver" used only once: possible typo
> at /apache/cgi-bin/survey2.pl line 52.
> $wwwserver = 'remedy.DOMAIN.mil';
> [DATE] survey2.pl: Name "main::TicketNumber" used only once: possible
> typo at /apache/cgi-bin/survey2.pl line 30.
> $TicketNumber = $query->param('Ticket Number');
> [DATE] survey2.pl: Name "main::ProblemDescription" used only once:
> possible typo at /apache/cgi-bin/survey2.pl line
> 33.
> $ProblemDescription = $query->param('Problem Description');
> [DATE] survey2.pl: Name "main::UserLastName" used only once: possible
> typo at /apache/cgi-bin/survey2.pl line 31.
> $UserLastName = $query->param('User Last Name');
>
> LINES 62 ~ 65 CODE
> 62 {
> 63 ## compares the ticket number to make sure the user is
> only accessing his own survey
> 64 if ($ticket eq $form{'Ticket Number'})
> 65 {
>
> [DATE] survey2.pl: Use of uninitialized value in string eq at
> /apache/cgi-bin/survey2.pl line 64.
> [DATE] survey2.pl: Use of uninitialized value in string eq at
> /apache/cgi-bin/survey2.pl line 64.
>
>
--
G. David Frye gd...@ui...
CCSO Communications Engineering (217) 333-7439
University of Illinois at Urbana-Champaign
|