Beefy Boxes and Bandwidth Generously Provided by pair Networks
Don't ask to ask, just ask
 
PerlMonks  

Re: How to Order an Array's Elements to Match Another Array's Element Order

by rsFalse (Friar)
on Sep 17, 2019 at 08:36 UTC ( #11106282=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl
    
    ...
    print "Method 2 (uses hash):\n";
    print Dumper(@results);
    print "\n";
    
  2. or download this
      Index of element 'PINEAPPLE' is: 5
      Index of element 'GRAPE' is: 3
    ...
    $VAR2 = 'ORANGE';
    $VAR3 = 'GRAPE';
    $VAR4 = 'PINEAPPLE';
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (6)
As of 2019-11-19 20:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Strict and warnings: which comes first?



    Results (96 votes). Check out past polls.

    Notices?