my ($mollusc) = (param('mollusc') || '') =~ /^(\w+)$/;
Works fine and no error messages -- Thank you very much
F
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Francesco Scaglioni wrote at Wed, 25 Sep 2002 15:45:22 +0200:
> Typo in the copy not the original -- I think I misstated my question
> -- the error message in the log only occurs when there is no mollusc
> parameter ( sometimes there is sometimes there isn't ). How can I
> check for the existanc
From: Janek Schleicher <[EMAIL PROTECTED]>
Subject: Re: uninitialised value in pattern match
Date: Tue, 24 Sep 2002 13:10:28 +0200
> ^^^
> There misses a ' quote.
> (Don't retype code, put & paste instead).
>
> >
Francesco Scaglioni wrote at Tue, 24 Sep 2002 13:40:40 +0200:
> I have one problem ( actually I'm sure I have many but haven't
> realised it yet ) that I'm stuck on.
>
>the following line ( and several others like it ) produce the
>following error :
>
>( my $mollusc ) = ( param( 'm
Hello,
I have one problem ( actually I'm sure I have many but haven't
realised it yet ) that I'm stuck on.
the following line ( and several others like it ) produce the
following error :
( my $mollusc ) = ( param( 'mollusc ) =~ /^(\w+)$/i );
causes:
"Use of inititialized val