Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

Re^5: Order in which grep/map receive elements

by greengaroo (Hermit)
on Oct 05, 2012 at 13:55 UTC ( #997479=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    @array1 = @array2;
    
  2. or download this
    foreach $element ( @array2 ) {
    
      push( @array1, $element );
    }
    
  3. or download this
    foreach $element ( @array2 ) {
    
    ...
        push( @array1, $element );
      }
    }
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997479]
help
Chatterbox?
[msh210]: *finally* tracked down the source of nonsensical results: I had sum0 (@ary / $foo) instead of (sum0 @ary) / $foo

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (4)
As of 2017-01-17 17:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (158 votes). Check out past polls.