Lhamo_rin has asked for the wisdom of the Perl Monks concerning the following question:

Fellow Monks, How can I search an array for all elements ending with a number and return those elements into another array? For example:
@array1 = qw/antas arvan3455 cen34 melno/;
I would then want @array2 to contain:
@array2 = {arvan3455 cen34}

Replies are listed 'Best First'.
Re: Searching Arrays
by trammell (Priest) on Jun 24, 2005 at 18:31 UTC
Re: Searching Arrays
by JediWizard (Deacon) on Jun 24, 2005 at 19:14 UTC

    To extend (explain?) trammell's answer:

    See grep, perlre, perlop.


    They say that time changes things, but you actually have to change them yourself.

    —Andy Warhol