Specially if the subroutine doesn't always actually use the regexp, you may avoid some regexp compilation this way.
In reply to Re: passing regular expression
by JavaFan
in thread passing regular expression
by karthikasasanka
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |