Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-03 Thread Paul Johnson
On Mon, Feb 03, 2003 at 11:08:37AM -, Rob Dixon wrote: > Paul Johnson wrote: > > But 5.10 will (probably) introducde the // operator which will allow > > you to say: > > > > $var //= 10; > > Where do you get this insider information Paul? Keeping up with development :-) >

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-03 Thread Rob Dixon
Paul Johnson wrote: > It probably sits better with something like: > > $var = 10 unless defined $var; > > But 5.10 will (probably) introducde the // operator which will allow > you to say: > > $var //= 10; Where do you get this insider information Paul? And what's this operator going to do? Pr

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-02 Thread Paul Johnson
On Mon, Feb 03, 2003 at 11:57:29AM +1100, simran wrote: > On Mon, 2003-02-03 at 09:37, Rob Dixon wrote: > > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > > [EMAIL PROTECTED] wrote: > > > > > > > > $var|=10; # like that if u want to set the

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-02 Thread simran
perhaps such a statement would suit: $var = defined $var ? $var : 10; On Mon, 2003-02-03 at 09:37, Rob Dixon wrote: > "John W. Krahn" <[EMAIL PROTECTED]> wrote in message > [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > > [EMAIL PROTECTED] wrote: > > > > > > $var|=10; # like that if u want to se

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-02 Thread Rob Dixon
"John W. Krahn" <[EMAIL PROTECTED]> wrote in message [EMAIL PROTECTED]">news:[EMAIL PROTECTED]... > [EMAIL PROTECTED] wrote: > > > > $var|=10; # like that if u want to set the variable to a default value-- > > # if the $var is not defined it assigns a value of 10 to it. > > You need to

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-02 Thread John W. Krahn
[EMAIL PROTECTED] wrote: > > $var|=10; # like that if u want to set the variable to a default value-- > # if the $var is not defined it assigns a value of 10 to it. You need to use the ||= operator not the |= operator for that. John -- use Perl; program fulfillment -- To unsubscri

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-02 Thread km
> > >How can I get around this "warning" > > > > Use of uninitialized value in pattern match (m//) at test.pl line 85. > > > > For some reason I always get driveNum=2. > > > > I am using warinig and strict in my code.. > > > [snip c

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread R. Joseph Newton
chad kellerman wrote: > Hi guys, > >How can I get around this "warning" > > Use of uninitialized value in pattern match (m//) at test.pl line 85. Hi Chad, Please send your code again with line 85 marked. You have that information in front of you, while we are a

Re: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread Rob Dixon
Chad Kellerman wrote: > Hi guys, > >How can I get around this "warning" > > Use of uninitialized value in pattern match (m//) at test.pl line 85. > > For some reason I always get driveNum=2. > > I am using warinig and strict in my code.. > [snip code]

RE: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread NYIMI Jose (BMB)
> -Original Message- > From: chad kellerman [mailto:[EMAIL PROTECTED]] > Sent: Saturday, February 01, 2003 6:38 PM > To: [EMAIL PROTECTED] > Subject: Use of uninitialized value in pattern match (m//) at > test.pl line 85. > > > Hi guys, > >H

RE: Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread NYIMI Jose (BMB)
of uninitialized value in pattern match (m//) at > test.pl line 85. > > > Hi guys, > >How can I get around this "warning" > > Use of uninitialized value in pattern match (m//) at test.pl line 85. > > For some reason I always get driveNum=2. >

Use of uninitialized value in pattern match (m//) at test.pl line 85.

2003-02-01 Thread chad kellerman
Hi guys, How can I get around this "warning" Use of uninitialized value in pattern match (m//) at test.pl line 85. For some reason I always get driveNum=2. I am using warinig and strict in my code.. if ($pong->ping($mslRef{$server}{ip})) { #check