http://www.perlmonks.org?node_id=999660


in reply to Re: Rook question
in thread Rook question

Awesome! Fixed the problem--thanks much! I didn't know if Perl associated the default $_ while moving through the indices of @_.

Replies are listed 'Best First'.
Re^3: Rook question
by davido (Cardinal) on Oct 18, 2012 at 03:09 UTC

    The mechanism of action is the foreach loop. It's just as happy aliasing $_ to elements of @this, @that, and @the_other as well. In this regard, @_ isn't special; foreach is.

    perlsyn


    Dave

Re^3: Rook question
by Anonymous Monk on Oct 18, 2012 at 03:10 UTC