>-----Original Message-----
>From: Paul [mailto:[EMAIL PROTECTED]]
>Sent: 12 July 2001 19:44
>To: Ken; Sebadamus; [EMAIL PROTECTED]
>Subject: Re: MID in Visual Basic...
[...]
>Personally, I'd probably say
>
> my($val) = $line =~ /=\s*([\d.]+])$/;
>
>That should put the 33.10 in $val.
>If that's too hard to read, use $1. =o)
[...]
Shouldn't you escape the decimal point in the matching expression too...
ie my($val) = $line =~ /=\s*([\d\.]+])$/;
...to avoid matching everything up to EOL, (sorry, I mean $) ?
Regards
--
|Gavin Jackson