in reply to Re: how to loop through hash tables more efficiently
in thread updated_again: how to loop through hash tables more efficiently

Thanks. It does run very fasta, but not the format I want.

I'd like to have output with KEY and VALUE from hash2 then followed by KEY from hash1,all three are separated by tab?

  • Comment on Re^2: how to loop through hash tables more efficiently

Replies are listed 'Best First'.
Re^3: how to loop through hash tables more efficiently
by tobyink (Canon) on Sep 17, 2012 at 22:44 UTC

    Then why didn't you show that in your original question?

    for (sort keys %tmp) { next if @{$tmp{$_}} < 2; say join "\t$_\t", reverse @{ $tmp{$_} }; }
    perl -E'sub Monkey::do{say$_,for@_,do{($monkey=[caller(0)]->[3])=~s{::}{ }and$monkey}}"Monkey say"->Monkey::do'