in reply to Re: Common elements of a hash of hashes
in thread Common elements of a hash of hashes

Sorry but some syntaxic piece of code are really obscur. i am not as comfortable as you with perl. do you mind giving me a short explanation on the elements hereunder?
sub perl_mouse { my %HoH = %{+shift}; # I know @_ to get the parameter but not this + one } $saw{lc,} # what is lc,?
As a general rule if you see a bareword like those, chances are that they may be built in functions. So, always as a general rule, you'll find that perl ('s excellent documentation) may already give you an answer; just check e.g. (in this case): But since there's a subtle issue involved here, please read also the following replies, including mine to Hue-Bond's.

Replies are listed 'Best First'.
Re^3: Common elements of a hash of hashes
by Anonymous Monk on Oct 11, 2005 at 22:05 UTC
    Thanks for your accurate explanation. I knew the functions shift and lc. In fact, the tricky points were the comma and the plus.

    I have the habit to read the documentation but I don't see very often this kind of syntax in it. to imagine how works the array reference of a grep followed by 2 map in a loop is not easy for everybody I guess.

    but thank to the monks, everybody can learn.

    I see it the other way around, that is, s/obscure/brilliant/.
    I would say s/obscure/brilliant_but_obuscure/ ;