Come for the quick hacks, stay for the epiphanies. | |
PerlMonks |
Re: Determining uniqueness in a string.by ioannis (Abbot) |
on Oct 01, 2005 at 01:01 UTC ( [id://496572]=note: print w/replies, xml ) | Need Help?? |
To speed things up, one easy step is to precompile the
(static) pattern using the qr// operator, like qr/^\d{10}$/, or using the m//o flag, as in
Also, the print statement might prove too expensive; perhaps, syswrite() is a better choice -- if you must write to output.
In Section
Seekers of Perl Wisdom
|
|