Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re: (OT) Interview questions -- your response?

by Abigail-II (Bishop)
on Sep 04, 2002 at 12:21 UTC ( #195051=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
        my %b_hash = map { $_ => 1 } @b_array;
        my @new_array = grep $b_hash{$_}, @a_array;
    
  2. or download this
        my %b_hash;
           $b_hash {$_} ++ for @b_array;
        my @c_array = map {($_) x ($b_hash {$_} || 0)} @a_array;
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (5)
As of 2019-05-20 19:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you enjoy 3D movies?



    Results (128 votes). Check out past polls.

    Notices?