in reply to Re: Re: Re: Filling An Array
in thread Filling An Array

You may be onto something for an obfu entry. For a little clearer use of grep, how about:
@a = grep /[A-H](0[1-9]|1[0-2])/, 'A01'..'H12';
?

The PerlMonk tr/// Advocate

Replies are listed 'Best First'.
Re: Re: Re: Re: Re: Filling An Array
by Not_a_Number (Prior) on Apr 21, 2004 at 21:58 UTC
    @a = grep /[A-H](0[1-9]|1[0-2])/, 'A01'..'H12';

    Why [A-H]?

    Gain 5 strokes:

    @a = grep /(0[1-9]|1[0-2])/, 'A01'..'H12';

    dave