LA.pm: Re: Regex

Samy Kamkar [CommPort5] CommPort5 at LucidX.com
Tue Jul 3 19:39:22 CDT 2001


Arkadiy Sudarikov wrote:
> 
> By the same token, if I had a regex matching multiple things, it would
> return those things separetely, in a list. Correct?

yup, for example
$temp = "xy";
($x, $y) = $temp =~ /(.)(.)/;

You can guess what the values will be then..
-Sam



More information about the Losangeles-pm mailing list