For starters, perlop says that the qr operator looks like this: qr/STRING/imosx - g isn't allowed.
Using $stream =~ /$regex/g still only compiles the regex once as the way that perl interpolates the $regex into a match operator should handle this for free (as in CPU time).
In reply to Re: Tokenizing and qr// <=> /g interplay
by Tanktalus
in thread Tokenizing and qr// <=> /g interplay
by skyknight
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |