"be consistent" | |
PerlMonks |
Re: matching a defined lenghtby shigetsu (Hermit) |
on Apr 23, 2007 at 12:46 UTC ( [id://611490]=note: print w/replies, xml ) | Need Help?? |
I'm not so sure whether I grasp the correct connotation of 'match' in that context. But, consider using:
or
Former one succeeds if $str has a length of 30 characters. Latter one yields back the first 30 characters extracted from $str using a regular expression.
In Section
Seekers of Perl Wisdom
|
|