Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

Re: how to print continuously in array of array?

by 2teez (Vicar)
on May 30, 2013 at 11:43 UTC ( [id://1036028]=note: print w/replies, xml ) Need Help??


in reply to how to print continuously in array of array?

#how to print one by one continuously in full array my $counter = 0; foreach my $array (@stuff){ print "ARRAY [ ", $counter++ ," ]: "; foreach my $data (@$array){ print $data,' '; } print $/; } #OR print join " ", map{@$_} @stuff[0..$#stuff];
but i want to print randomly how?
You should be able to do that now, however, don't forget the function rand

If you tell me, I'll forget.
If you show me, I'll remember.
if you involve me, I'll understand.
--- Author unknown to me

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (3)
As of 2024-04-24 02:09 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found