in reply to avoiding the hash

You simply want to avoid it because of the order? So why not not-avoid and do it this way:
@hash{@array}=@array2; foreach $v (@array) { print $hash{$v}; }
You have paired them in %hash and keep the sequence in @array.

Replies are listed 'Best First'.
Re: Re: avoiding the hash
by Corion (Patriarch) on May 09, 2003 at 10:48 UTC

    Which is OK as long as @array dosen't contain duplicates ...

    perl -MHTTP::Daemon -MHTTP::Response -MLWP::Simple -e ' ; # The $d = new HTTP::Daemon and fork and getprint $d->url and exit;#spider ($c = $d->accept())->get_request(); $c->send_response( new #in the HTTP::Response(200,$_,$_,qq(Just another Perl hacker\n))); ' # web
      *sigh* There is always a downside :-/