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')
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
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') # <-
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
> Hello,
>
> I got the following function online but and receiving the error and
> do not know why ?
> Use of uninitialized value in string at ./sat-main.pl line 211,
> line 1
>
> Here is the code:
>
> my $input;
>
> $input = &user_func("E
Hello,
I got the following function online but and receiving the error and
do not know why ?
Use of uninitialized value in string at ./sat-main.pl line 211,
line 1
Here is the code:
my $input;
$input = &user_func("Enter command ");
sub user_func {
my $use
Yes...Thanks for the reply..It worked
Thanks
Anish
- Original Message -
From: "Ing. Branislav Gerzo" <[EMAIL PROTECTED]>
To:
Sent: Wednesday, December 29, 2004 4:43 PM
Subject: Re: Use of uninitialized value in String
> Anish Kumar K. [AKK], on Tuesday, Decembe
Anish Kumar K. [AKK], on Tuesday, December 28, 2004 at 16:37 (+0530)
wrote about:
AKK> 6: if ($browserName eq "")
unless ($browserName) {
...
I think you have null value in db.
--
...m8s, cu l8r, Brano.
[Kids love the rich taste of titanium - Joel]
--
To unsubscribe, e-mail: [EMAIL PRO
I am getting this error not sure why
Use of uninitialized value in string eq at line :6
1: $rows=$dbh->prepare("select browsername from course where clientname
='DEMO");
2: $rows->execute();
3: while(@row=$rows->fetchrow_array())
4: {
5: $browserName=shift(@row);
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
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
$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
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 ?
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
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
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
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
>
> 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.
>
>
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
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
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};
>
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
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
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
24 matches
Mail list logo