robertw has asked for the wisdom of the Perl Monks concerning the following question:
Dear perl monks, I have made the following script
use lib '/opt/perl5/perlbrew/bin/perlbrew/perls/perl-5.14.0/lib/site_p +erl/5.14.0'; use Games::Cards::Poker; use Math::Combinatorics; @n = ("2","3","4","5","6","7","8","9","T","J","Q","K","A"); @A = join(",", map { join ",", @$_ } combine(5,@n)); $A= @A; print $A;
Why does this generate 1 instead of the items in the list? If you put the list items in a scalar you should be able to get the number from the scalar this way right?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl list items
by davido (Cardinal) on Jul 09, 2012 at 15:22 UTC | |
by frozenwithjoy (Priest) on Jul 09, 2012 at 15:36 UTC | |
by monsoon (Pilgrim) on Jul 09, 2012 at 16:07 UTC | |
by frozenwithjoy (Priest) on Jul 09, 2012 at 16:17 UTC | |
by robertw (Sexton) on Jul 09, 2012 at 17:57 UTC | |
| |
by tobyink (Canon) on Jul 09, 2012 at 16:17 UTC |