for and given both use $_. The difference is that for uses our $_ and aliases it to the item, while given copies (though I believe it's a cheap optimized copy) the item to my $_.
In reply to Re^3: Using pos() inside given/when
by tobyink
in thread Using pos() inside given/when
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |