Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^2: Select value from array w/o replacement (or destroying the array)

by BioNrd (Monk)
on Dec 04, 2007 at 16:30 UTC ( [id://654849]=note: print w/replies, xml ) Need Help??


in reply to Re: Select value from array w/o replacement (or destroying the array)
in thread Select value from array w/o replacement (or destroying the array)

I agree that this solution is going to suit my needs. The code works really well, but I don't understand a part of it.
my $picker_of_next_rand = gen_picker( \@letters ); print $picker_of_next_rand->();
I under stand that is is a reference/dereference type thing.

What I don't understand is how to use the variable $pick in a meaningful (non-global) way. i.e. $var_to_use_later = $list[$pick]; I have had trouble with reference/dereference structure before, and I have tried to use the camal book. It is not sinking in, and combined with a bit of code I am not familar with...it is a headache for me.

I appreciate all that has been done to this point for me, it is just that last little push in the right direction I need.

Thanks...Bio.

Even a blind squirrel finds a nut sometimes.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (5)
As of 2024-04-24 01:00 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found