--- Ken <[EMAIL PROTECTED]> wrote:
> susbtr is almost identical to mid, but better (isn't that true for
> most of perl?)
> perldoc -f susbtr

lol -- I think so.
Compare "use strict" with "Option Explicit". =o)

Anyway....

> ----- Original Message -----
> From: "Sebadamus" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Thursday, July 12, 2001 9:24 AM
> Subject: MID in Visual Basic...
> 
> > In Visual I used the MID function to get a part of a text...
> > por ex. "price = 33.10" and I could get using "=" and EOL as
> delimiters the price "33.10"
> >
> > Can you tell me if I should use the SPLIT function in perl???

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)

__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

Reply via email to