Thanks for the explanation, japhy++! Playing around with your code I think I understand it now and how I accidently created a closure. I still have some questions, though.
fixes it here but what if the whole thing is in a subroutine, then I can't call it more than once, can I?my @x; for (0..2) { @x = (0); "ab" =~ $p; push @r, \@x; }
-- Hofmator
In reply to Re2: Perl Bug in Regex Code Block?
by Hofmator
in thread Perl Bug in Regex Code Block?
by Hofmator
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |