Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re^2: Using hashes for set operations...

by LanX (Saint)
on May 23, 2011 at 08:51 UTC ( [id://906264]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
     
    #!/usr/bin/env perl
    use strict;
    ...
    print "inter: ", pp(\%inter), "\n";
    print "sd1: ", pp(\%sd1), "\n";
    print "sd2: ", pp(\%sd2), "\n";
    
  2. or download this
    Use of uninitialized value $array2[2] in hash slice at /home/lanx/B/PL
    +/PM/set2.pl line 12.
    Use of uninitialized value $array2[2] in delete at /home/lanx/B/PL/PM/
    +set2.pl line 16.
    array1: [1, 2, ""]
    ...
    inter: { "" => undef, 2 => 2 }
    sd1: { 1 => 1 }
    sd2: { 3 => 3 }
    

Log In?
Username:
Password:

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

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

    No recent polls found