Beefy Boxes and Bandwidth Generously Provided by pair Networks Cowboy Neal with Hat
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re^2: Array manipulation how to

by jwkrahn (Prior)
on Feb 07, 2012 at 11:07 UTC ( #952246=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    $index = ($index + $dir) % @array;
    
  2. or download this
    ( $index += $dir ) %= @array;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://952246]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (17)
As of 2013-05-21 11:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The best material for plates (tableware) is:









    Results (431 votes), past polls