[Date Prev][Date Next][Thread Prev][Thread Next] [Search] [Date Index] [Thread Index]

Re: [FWP] Perl Card Games



LR wrote:
> > John Porter wrote:
> > 	@a = (undef) x 5;  # any value; it will get overwritten.
> 
> I keep seeing that, and I keep wondering how that differs from this:
>       my @a; $#a = 4;

Oh, I like that even better!

Or how about:

{ local $[ = 1; $#a = $n_hands; }

John Porter
	

==== Want to unsubscribe from Fun With Perl?  Well, if you insist...
==== Send email to <fwp-request@technofile.org> with message _body_
====   unsubscribe