|
Hi,
You need to research on regular expressions.
There's a lot you can do with it, this is just the smallest part of its
power:
if ($var =~ m[House]) {...} # This will match the word House anywhere in
$var
if ($var =~ m[house]i) {...} # The same, but case insensitive
if ($var =~ m[^house]i) {...} # The same, but only of $var begins with
house
if ($var =~ m[house$]i) {...} # The same, but only if $var ends with
house
As i said, this is nothing, there's MUCH more in
regex, there are entire books and websites on the subject. Google would be a
better place to find tutorials about it.
Cheers,
Paco.
|
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
