Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris
 
PerlMonks  

Re^2: Rook question

by squimby (Acolyte)
on Oct 18, 2012 at 02:58 UTC ( #999660=note: print w/replies, xml ) Need Help??


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 (Archbishop) 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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://999660]
help
Chatterbox?
[zentara]: marto arn't those NSA secrets? :-)
[marto]: not if you keep telling people :P
[zentara]: I had to disable hyperthreading on my machine because of that.
[Discipulus]: thanks marto but... at the moment this seems a bit beyond my faculties.. ;=)
[zentara]: a thread goes into a wait state after emitting a wait to all other threads. It locks up a machine completely.
[marto]: if you mean the recent hyperthreading bug, I don't think that's NSA related?
[zentara]: s/thread/cpu/
[marto]: xkcd://538
[Discipulus]: these opcodes mentioned in the wiki pages are the same opcode perl is translated into? or is just the same term but in different fields?

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (11)
As of 2017-07-28 12:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I came, I saw, I ...
























    Results (428 votes). Check out past polls.