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


in reply to Declaring an Array Using Character Classes

G'day simpzoid,

Perhaps something like this:

$ perl -Mstrict -Mwarnings -e ' my @arry = ("a" .. "z", 0 .. 9); print "@arry\n"; ' a b c d e f g h i j k l m n o p q r s t u v w x y z 0 1 2 3 4 5 6 7 8 +9

-- Ken

Replies are listed 'Best First'.
Re^2: Declaring an Array Using Character Classes
by simpzoid (Novice) on Nov 27, 2012 at 08:52 UTC
    Wow, thanks for the quick reply. That worrks for me.