http://www.perlmonks.org?node_id=568586


in reply to Glob strange behavior

People typing lines like this:

my @sign_arr=('A1', 'A2', 'A3','A4', 'A5', 'A6', 'A7', 'A8', 'A9');

make the lazy man in me cringe :)

Using the range operator in list context to produce lists of automagically incremented values was one of the first things I learned to reduce typing... :

my @sign_arr = 'A1'..'A9';

Replies are listed 'Best First'.
Re^2: Glob strange behavior
by Anonymous Monk on Aug 22, 2006 at 03:15 UTC
    Hi.

    calin++

    Just to illustrate what is available...

    my @sign_arr = qw(A1 A2 A3 A4 A5 A6 A7 A8 A9);