On Mon, Apr 13, 2009 at 06:12, Gunnar Hjalmarsson <nore...@gunnar.cc> wrote: snip >> Also, if you make that change you need to check the for loop as well: >> >> for my $i (0 .. 10) { > > Actually no. > > $ perl -wle ' > @rank = qw/A 2 3 4 5 6 7 8 9 10 J Q K A/; > print map $_."[cdhs]", @rank[10..10+4]; > ' > Use of uninitialized value $_ in concatenation (.) or string at -e line 3. snip
Ahha, my original had the same off-by-one error. How did I miss that? -- Chas. Owens wonkden.net The most important skill a programmer can have is the ability to read. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/