in reply to Re^2: mystery function & Odd number of elements in anonymous hash
in thread mystery function & Odd number of elements in anonymous hash

The fat comma is just that, a fat comma. It stringifies the argument on its lefthand side if it is a bareword.

Personally, I would use something like:

my $foo = func(); my $hashref = { foo => $foo, bar => $bar };

Replies are listed 'Best First'.
Re^4: mystery function & Odd number of elements in anonymous hash
by Anonymous Monk on Jul 17, 2011 at 19:49 UTC

    Thank you for your insights. I ended up writing a wrapper function to force context.