in reply to Re: Filling an array. (Golf challenge?)
in thread Filling an array. (Golf challenge?)

Nice. But it's two lines, counting the array declaration.
I am addicted to strict! ;-)
my @a; for$i(1..8){push@a,$_.$i for"a".."h"};
update Of course it should be also
my $i; # after my @a; sorry :-(
 _  _ _  _  
(_|| | |(_|><
 _|   

Replies are listed 'Best First'.
Re^3: Filling an array. (Golf challenge?)
by Aristotle (Chancellor) on Dec 27, 2001 at 20:03 UTC
    Then that would have to be:
    my (@a, $i);
    Pay attention! :P

    Unless of course, you go for for my $i.