...and maybe a more generic subroutine finder...if ( $line =~ /[^a-zA-Z]$sub[^a-zA-Z]*?\(/ ) {
foreach my $line ( @sub_code ) { if ($line =~ /[^a-zA-Z]([a-zA-Z_]+[a-zA-Z_0-9]*)[^a-zA-Z]*\(/ and exists $SUBS{$1}) { push @subs, $key } }
In reply to Re: Slow Regex - How to Optimize
by Anonymous Monk
in thread Slow Regex - How to Optimize
by noslenj123
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |