Help for this page

Select Code to Download


  1. or download this
    my @new_array = do {
      my %bobs_your_uncle;
      grep !$bobs_your_uncle{$_->{bob}}++, @array;
    };
    
  2. or download this
    { bob=>'carol', alice=>"ted" }
    
  3. or download this
    perl -e 'print "How sweet does a rose smell? "; chomp ($n = <STDIN>); 
    +$rose = "smells sweet to degree $n"; *other_name = *rose; print "$oth
    +er_name\n"'