http://www.perlmonks.org?node_id=771668


in reply to Re^5: Suggestion for regular expression speed improvement.
in thread Suggestion for regular expression speed improvement.

Make your system handle the various cases. A regex, a split, an unpack, maybe even an xml parser....

I agree. The simplest solution is to make the caller supply a code reference, which you then call and which does the parsing/matching/unpacking/whatever.

  • Comment on Re^6: Suggestion for regular expression speed improvement.