Help for this page

Select Code to Download


  1. or download this
        my %wanted   = ();
        my %hash     = ( 'foo' => [1,2,3], 'bar' =>[3,4,5]);
    ...
        for $key (keys %wanted) {
            print "$key, @{$wanted{$key}}\n";
        }
    
  2. or download this
        Left-over:
        bar, 3 4 5
        Wanted:
        foo, 1 2 3