Beefy Boxes and Bandwidth Generously Provided by pair Networks
Clear questions and runnable code
get the best and fastest answer
 
PerlMonks  

Re: compare arrays numbers

by biohisham (Priest)
on Feb 16, 2010 at 19:05 UTC ( [id://823530]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    my @array1=qw(1 2 3 4);
    ...
               print $array1[$i] - $array2[$i],"\n";
               $i++;
               }
    
  2. or download this
    #Descending 
    my $i = $#array1+1; 
    ...
    # my $i = @array1;
    
    print $array1[$i] -$array2[$i],"\n" while $i--;
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-25 23:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found