> -----Original Message-----
> From: bob ackerman [mailto:[EMAIL PROTECTED]]
> Sent: Wednesday, June 26, 2002 9:07 AM
> To: [EMAIL PROTECTED]
> Subject: Re: extracting a string from between parens
> 
> 
> 
> On Wednesday, June 26, 2002, at 08:48  AM, Shishir K. Singh wrote:
> 
> >> $out = $1 if ($in =~ /\((.*?)\)/);
> > Nope..won't work..I take it back!!
> >
> 
> looks ok to me. except it adds extra strokes to previous answer.
> what do you think is wrong with it?
> 

Perhaps it is that $out will still be the previous value if no match?

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

Reply via email to