Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: avoiding the hash

by Skeeve (Parson)
on May 09, 2003 at 10:24 UTC ( [id://256814]=note: print w/replies, xml ) Need Help??


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 :-/

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://256814]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others taking refuge in the Monastery: (3)
As of 2025-06-19 04:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.