nope, you dont need to escape that... reason for that is logical, but maybe
not consistent...
see, . is already a character class of it's own, holding 'everything'. So if
you put that in ANOTHER character class, that would kind of beat the purpose
of making a new class in the first place... so Per
>-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.]+])$/;
>
>Tha
--- 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]>
> T
"Sebadamus" <[EMAIL PROTECTED]> wrote:
>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"
this might work:
$line =~ /=\s(.+)\n/s and $price = $1;
where $line is your part of text and $price is
Ack! Typo!
substr
- Original Message -
From: "Ken" <[EMAIL PROTECTED]>
To: "Sebadamus" <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]>
Sent: Thursday, July 12, 2001 12:18 PM
Subject: Re: MID in Visual Basic...
> susbtr is almost identical to mid
susbtr is almost identical to mid, but better (isn't that true for most of
perl?)
perldoc -f susbtr
- 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 functi
You could use something like this
$string = "price= 33.10";
($number) = $string =~ /=\s+(.*)$/;
print $number;
-Original Message-
From: Sebadamus [mailto:[EMAIL PROTECTED]]
Sent: 12 July 2001 16:24
To: [EMAIL PROTECTED]
Subject: MID in Visual Basic...
In Visual I used the MID functio