in reply to Re: stripping an array
in thread stripping an array

I tested this one. It works and wins my vote for shortest and cleanest.

Replies are listed 'Best First'.
Re: Re: Re: stripping an array
by jdporter (Paladin) on Jan 02, 2003 at 18:22 UTC
    But you're wrong. :-)
    my @arr3 = @foo{@arr1};

    And if you don't mind very short but somewhat dirty, you can do this:
    my %foo = map{/,/;$`,$'} @arr2;

    jdporter
    The 6th Rule of Perl Club is -- There is no Rule #6.