Is the benchmark module broke or something? lol!!
Yes. lol!!
print $1 while 'abcdefghijkl' =~ m[(.{3})]g;; abc def ghi jkl use constant LEN => 3;; print $1 while 'abcdefghijkl' =~ m[(.{LEN})]g;; ## notable absence of output mean the regex matched nothing (very, ver +y quickly).
In reply to Re: SUBSTR OR REGEX: WHICH WILL YOU FAVOUR?
by BrowserUk
in thread SUBSTR OR REGEX: WHICH WILL YOU FAVOUR?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |