Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

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

by merlyn (Sage)
on Sep 03, 2002 at 18:43 UTC ( #194851=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 @array = ( 'foo', 'bar', 'baz', 'cheeze whiz' );
    for (my $left = 0, my $right = $#array; $left < $right; $left++, $righ
    +t--) {
      @array[$left, $right] = @array[$right, $left];
    }
    

Log In?
Username:
Password:

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

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



    Results (123 votes). Check out past polls.

    Notices?