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

Re^2: Idiom: hashes as sets

by Narveson (Chaplain)
on Jul 02, 2008 at 19:22 UTC ( #695187=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    my %set;
    @set{qw(I agree)} = ();
    print sort keys %set;      # Iagree
    
  2. or download this
    @set{@list} = (undef) x scalar @list;