> -----Original Message-----
> From: Francesco Scaglioni [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, November 28, 2001 10:30 AM
> To: [EMAIL PROTECTED]
> Subject: taint match
> 
> 
> Hi,
> 
> The following line returns a value of 1 (one) - presumably to confirm
> a match.  What am I missing such that $subject contains the value of
> the param ( if matches ).
> 
> ( my $subject  ) = ( param( 'subject'  ) =~  /^(\w+)$/i )  || '';

The || expression is forcing the m// into scalar context. Just leave it
off; if there is no match, $subject will be set to undef.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to