Re: Use of uninitialized value in string eq

2007-01-26 Thread Rob Dixon
gt; using uninitialized values. The first warning that occurs complains > of a "use of uninitialized value in string eq" at line 505 of my > script. Line 505 (I've triple-checked the line number and the correct > source) reads: > > if ($exploit_name eq 'ALL')

Re: Use of uninitialized value in string eq

2007-01-26 Thread Jen Spinney
e) > perl application. > > My problem is that I'm hit with a barrage of warnings that tell me I'm > using uninitialized values. The first warning that occurs complains > of a "use of uninitialized value in string eq" at line 505 of my > script. Line 505 (I'v

Re: Use of uninitialized value in string eq

2007-01-26 Thread Adriano Ferreira
that tell me I'm using uninitialized values. The first warning that occurs complains of a "use of uninitialized value in string eq" at line 505 of my script. Line 505 (I've triple-checked the line number and the correct source) reads: if ($exploit_name eq 'ALL') # <-

Use of uninitialized value in string eq

2007-01-26 Thread Jen Spinney
st warning that occurs complains of a "use of uninitialized value in string eq" at line 505 of my script. Line 505 (I've triple-checked the line number and the correct source) reads: if ($exploit_name eq 'ALL') # <-- line 505 I had no idea how $exploit_name could

RE: Use of uninitialized value in string eq

2004-07-09 Thread Bob Showalter
if ($atmnb1 eq "") { $atmnb1=$atmnb[0];} >close(FILE); >$nbc++; > > When I try to execute it using the '-w' option, I get the following > warning: "Use of uninitialized value in string eq at RED-II.pl line 8" > > I do not understand as for me ($atm

Re: Use of uninitialized value in string eq

2004-07-08 Thread John W . Krahn
On Thursday 08 July 2004 12:49, FyD wrote: > > Hi, Hello, > Here is a short perl script: > >open (FILE, "<$START"); You should *ALWAYS* verify that the file opened correctly: open FILE, "<$START" or die "Cannot open $START: $!"; >$nbc=0; You should use lexically scoped variables inst

RE: Use of uninitialized value in string eq

2004-07-08 Thread Hanson, Rob
$atmnb = ''; Rob -Original Message- From: FyD [mailto:[EMAIL PROTECTED] Sent: Thursday, July 08, 2004 3:50 PM To: [EMAIL PROTECTED] Subject: Use of uninitialized value in string eq Hi, Here is a short perl script: open (FILE, "<$START"); $nbc=0; foreach

Use of uninitialized value in string eq

2004-07-08 Thread FyD
LE); $nbc++; When I try to execute it using the '-w' option, I get the following warning: "Use of uninitialized value in string eq at RED-II.pl line 8" I do not understand as for me ($atmnb1 eq "") is needed for uninitialized values. How can avoid such warnings ?

Re: Use of uninitialized value in string eq at ./adpanel.pl line37.

2001-06-08 Thread Brett W. McCoy
On Fri, 8 Jun 2001 [EMAIL PROTECTED] wrote: > > You get this warning because $action is undefined. Comparing undefined value > > with something is usually unwanted, so it produces a warning. > > > > You could rewrite it to: > > if (defined($action) && ($action eq 'add')) { > > > > or assign somet

Re: Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread Ondrej Par
On Friday 08 June 2001 16:39, [EMAIL PROTECTED] wrote: > even when defining it as my %formdata; i still get the same error. i > believe that i have tried it as > > my %formdata; > my $formdata; > > the only other variable reference in that line is to $action, which has a > my statement. > Dec

RE: Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread Lynch, Dennis
er 'add' nor 'delete', $action is not initialized. Its value remains NULL. This is necessarily bad, but the -w switch will warn you with Use of uninitialized value in string eq at ./adpanel.pl line 37. Check your logic to ensure that you are correctly setting $action. Hope

Re: Use of uninitialized value in string eq at ./adpanel.pl line37.

2001-06-08 Thread iansmith
On Fri, 8 Jun 2001 [EMAIL PROTECTED] wrote: > why is $action undefined? i use my $action; earlier in the script > and i thought that the statement $action = $formdata{action}; > would take care of assigning a value to $action so that it would > not be undefined. If formdat

Re: Use of uninitialized value in string eq at ./adpanel.pl line37.

2001-06-08 Thread charles
> > You get this warning because $action is undefined. Comparing undefined value > with something is usually unwanted, so it produces a warning. > > You could rewrite it to: > if (defined($action) && ($action eq 'add')) { > > or assign something meaningful to $action before you use it. > >

Re: Use of uninitialized value in string eq at ./adpanel.pl line37.

2001-06-08 Thread charles
you wrote: > >I am getting: > > > > Use of uninitialized value in string eq at ./adpanel.pl line 37. > > > >even though my line 37 appears as: > > > > > >if ( $action eq "add" ) { <-- line 37 > > $add_al

Re: Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread Ondrej Par
On Friday 08 June 2001 16:29, [EMAIL PROTECTED] wrote: > I am getting: > > Use of uninitialized value in string eq at ./adpanel.pl line 37. > > even though my line 37 appears as: > > > if ( $action eq "add" ) { <-- line 37 > $add_alias

Re: Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread Peter Cline
At 09:29 AM 6/8/01 -0500, you wrote: >I am getting: > > Use of uninitialized value in string eq at ./adpanel.pl line 37. > >even though my line 37 appears as: > > >if ( $action eq "add" ) { <-- line 37 > $add_alias = $formdata{alias}; >

Use of uninitialized value in string eq at ./adpanel.pl line 37.

2001-06-08 Thread charles
I am getting: Use of uninitialized value in string eq at ./adpanel.pl line 37. even though my line 37 appears as: if ( $action eq "add" ) { <-- line 37 $add_alias = $formdata{alias}; $add_destination = $formdata{destination}; $add_tag = 1; } earlier in

Re: Use of uninitialized value in string eq atI:\Inetpub\wwwroot\PL1\cgi-bin\members_admin.pl line 66.

2001-05-17 Thread bmccoy
On Thu, 17 May 2001, Davidhayesmoats wrote: > I have a perl script running and i keep getting this error message: > Use of uninitialized value in string eq at >I:\Inetpub\wwwroot\PL1\cgi-bin\members_admin.pl line 66. > > The code from that area is: > > # decide task acc

Use of uninitialized value in string eq at I:\Inetpub\wwwroot\PL1\cgi-bin\members_admin.pl line 66.

2001-05-17 Thread Davidhayesmoats
I have a perl script running and i keep getting this error message: Use of uninitialized value in string eq at I:\Inetpub\wwwroot\PL1\cgi-bin\members_admin.pl line 66. The code from that area is: # decide task according to mode if ($mode eq "menu") < line 66 { # Menu