in reply to
If Statements and Regular Expressions
In addition to the very useful replies above, note that you are matching the string
Hox
any time it occurs in the word. If you want it only at the beginning, then you need the regex
/^Hox/
.
Comment on
Re: If Statements and Regular Expressions
Select
or
Download
Code
In Section
Seekers of Perl Wisdom