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.
 
----- Original Message -----
Sent: Tuesday, September 19, 2006 10:44 AM
Subject: clarification

Dear Team,
      I need a clarification regarding perl operators.

ie. Is there any operator called LIKE in perl.or its substitute.
The scenario is that,ie, can i store  string whose starting letter is say 'a' but rest of its character is unknown.

i mean to say whether this is possible.
$myvariable LIKE '['a'||']%'; .


expecting your support soon.
sandeep s kumar







_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to