[LA.pm] next time we need to give away a book...
Ofer Nave
ofer at netapt.com
Sun Mar 6 17:16:08 PST 2005
On Sun, 6 Mar 2005, Robert Spier wrote:
> > http://search.cpan.org/~petdance/Acme-PM-Chicago-0.01/Chicago.pm
> > >From the SYNOPSIS:
> > "We here in Chicago.PM have the monthly problem of how to give away books.
> > Names from a hat? Bizarre statistical extraction from Lembark? Who can
> > tell? We decided once and for all to have ONE WAY to do it."
>
> This boils down to:
>
> sub random_name {
> my @names = @_;
>
> return $names[rand @names];
> }
I know. :)
> which is really less interesting than what we have now.
And I agree! But I thought ya'll might be amused that someone in Chicago
actually created a function for that express purpose, despite it being
implemented in the most obvious fashion.
-ofer
More information about the Losangeles-pm
mailing list