in reply to Re^3: an algorithm to randomly pick items that are present at different frequencies
in thread an algorithm to randomly pick items that are present at different frequencies
Hi BrowserUk,
Thanks very much for this. Unfortunately, this syntax is above my head, though I would like to understand it. For starters, what exactly am I passing to "genPicker"? A file handle? A file name? I made a space-delimited file with A, B and C in the first column and the frequencies in the second column and tried in various ways to pass that into the subroutine but without success.
my $pick = genPicker( *DATA );What is "*DATA" here? I don't know how to get the "__DATA__" that you list near the bottom into *DATA form. Any help would be much appreciated.
Best wishes, Eric
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^5: an algorithm to randomly pick items that are present at different frequencies
by BrowserUk (Patriarch) on May 27, 2015 at 05:46 UTC | |
by efoss (Acolyte) on May 27, 2015 at 19:01 UTC | |
by BrowserUk (Patriarch) on May 27, 2015 at 22:33 UTC | |
by efoss (Acolyte) on May 28, 2015 at 04:54 UTC | |
by efoss (Acolyte) on Jun 04, 2015 at 20:30 UTC | |
by BrowserUk (Patriarch) on Jun 04, 2015 at 20:41 UTC | |
|