From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Paco
Zarabozo A.
Sent: 19 September 2006 18:25
To: sandeep s kumar; [email protected]
Subject: Re: clarification
> 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.
Yes there are plenty of books and websites, varying in quality from
great to abysmal, but the best place to look for help is on your hard
disk. These is a whole heap of documentation that comes with Perl (in
HTML with Activestate Perl) that matches the version of Perl that you
have (unlike most books and websites), including tutorials. For example
see 'perldoc perlretut' for a tutorial on regular expressions, also
'perldoc perlrequick', and 'perldoc perlre' for a more detailed
reference. Also, given the apparent nievity of the original question, I
would suggest starting with 'perldoc perlintro'.
[Just a note, in case the OP is still watching, 'perldoc <something>' in
this context is a shorthand for either type 'perldoc <something>' at a
command line prompt, or look up <something> in the table of contents of
your HTML documentation.]
HTH
--
Brian Raven
=================================
Atos Euronext Market Solutions Disclaimer
=================================
The information contained in this e-mail is confidential and solely for the
intended addressee(s). Unauthorised reproduction, disclosure, modification,
and/or distribution of this email may be unlawful.
If you have received this email in error, please notify the sender immediately
and delete it from your system. The views expressed in this message do not
necessarily reflect those of Atos Euronext Market Solutions.
L'information contenue dans cet e-mail est confidentielle et uniquement
destinee a la (aux) personnes a laquelle (auxquelle(s)) elle est adressee.
Toute copie, publication ou diffusion de cet email est interdite. Si cet e-mail
vous parvient par erreur, nous vous prions de bien vouloir prevenir
l'expediteur immediatement et d'effacer le e-mail et annexes jointes de votre
systeme. Le contenu de ce message electronique ne represente pas necessairement
la position ou le point de vue d'Atos Euronext Market Solutions.
_______________________________________________
ActivePerl mailing list
[email protected]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs