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

How can one find unique elements from arrays using a LOOP?

by supriyoch_2008 (Monk)
on Mar 04, 2014 at 10:30 UTC ( [id://1076848]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl 
    use warnings; 
    use List::Compare; # use of module
    ...
     unq_z: @unq_z\n\n"; 
    
    exit;
    
  2. or download this
    C:\Users\x\Desktop>n.pl
    
     Array s: ARRAY(0x2140b14) ARRAY(0x2140ae4) ARRAY(0x215a024)
    ...
     unq_y: c
    
     unq_z: d
    
  3. or download this
    # To find unique elements in each array:   
    #!/usr/bin/perl 
    use warnings; 
    ...
     unq_z: @unq_z\n\n"; 
    
    exit;
    
  4. or download this
     
    C:\Users\x\Desktop>m.pl
    
    ...
     unq_y: 
    
     unq_z:
    
  5. or download this
    Array s: ???   
    
     No. of Elements: 3
    ...
     unq_y: c
    
     unq_z: d
    

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others learning in the Monastery: (5)
As of 2024-05-30 03:04 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found