in reply to Re: Find common values in a hash and print the respective keys
in thread Find common values in a hash and print the respective keys

Which is quite clever since keys must be strings. =)

May I propose to put the delimiter at the end (splitting ignores by defaults empty fields at the end) ...

DB<101> split /\|/, 'a|b|c|' => ("a", "b", "c") DB<102> split /\|/, '|a|b|c' => ("", "a", "b", "c")

and to chose something less vulnerable like "\0" or "$;" as delimiter?

Cheers Rolf

( addicted to the Perl Programming Language)