in reply to Re: Array shortcut
in thread Array shortcut

You can actually do some of them without needing chr. my @a = ('a' .. 'z');

my @a = ('a'..'z', 'A'..'Z', 0..9, qw(! @ # $ % ^ & *), ' '); # maybe?

Just another way to do it.

UPDATE: Or you could disable that warning. It is just a warning afterall.

-Paul

Replies are listed 'Best First'.
Re^3: Array shortcut
by toolic (Bishop) on Jul 01, 2009 at 01:36 UTC
    and avoid a warning by pulling '#' out of qw:
    my @chars = ('a' .. 'z', 'A' .. 'Z', 0 .. 9, '#', ' ', qw(! @ $ % ^ & +*));