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

Re: Re: Re: Re: Fastest way to compare multiple variables?

by merlyn (Sage)
on May 15, 2001 at 21:51 UTC ( #80645=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use CGI;
    @array1 = param('datalist1');
    @array2 = param('datalist2');
    @array3 = param('datalist3');
    
  2. or download this
    my %data = map { $_ => [param $_] } qw(datalist1 datalist2 datalist3);
    
  3. or download this
    sub compare {
      my @lengths = map { scalar @{$data{$_}} } qw(datalist1 datalist2 dat
    +alist3);
    ...
      $first == $_ or return 0 for @lengths;
      return 1;
    }
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (15)
As of 2014-07-10 19:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (215 votes), past polls