Or you could use the alternate "start of string" assertion:
Code:
if ( $string =~ /\Aa/ )
I prefer to use \A instead of ^ (and \Z instead of $) because they're easier to remember and look more like what they do. Just a matter of preference.
Tracy Dryden
tracy@bydisn.com
Meddle not in the affairs of dragons,
For you are crunchy, and good with mustard.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.