in reply to SUBSTR OR REGEX: WHICH WILL YOU FAVOUR?
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).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: SUBSTR OR REGEX: WHICH WILL YOU FAVOUR?
by Anonymous Monk on Oct 19, 2013 at 20:33 UTC |