Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: help in understanding the standard array shuffle

by ChOas (Curate)
on Feb 14, 2001 at 17:56 UTC ( [id://58339]=note: print w/replies, xml ) Need Help??


in reply to help in understanding the standard array shuffle

Hi!

1: this works like a C-style for: The 2nd argument is the 'while' (or
as you call it 'guard') part... when $i reaches '0' it is no longer true,
the for loop breaks

2: It is a slice on the 1-D array, it means : take the elements at
position $j, and $i, and put them in position $i and $j

Hope this helps a little bit

GreetZ!,
    ChOas

print "profeth still\n" if /bird|devil/;
  • Comment on Re: help in understanding the standard array shuffle

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (3)
As of 2024-04-26 00:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found