It's a lot less clear, though. Maybe if you build the regexes beforehand, you'll see a speed benefit? Look at the qr/// operator.foreach my $constant (keys %constants) { $string = join $constants{$constant}, split /$constant/, $string; }
In reply to RE: How do I speed this up?
by chromatic
in thread How do I speed this up?
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |