will $re be precompiled and therefore not changed only within one loop iteration and on the next one be recompiled again since $re is declared inside loop?foreach(...) { my $re=qr/...$xxx..../o; @a = grep { /$re/ } @b ..... }
In reply to Precompiling qr/.../o question by vit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |