djk at tobit.co.uk
Sun Jan 18 18:14:39 GMT 2009
Phil White wrote:
>> $ml->attach( ('HASH' eq ref($a))? %$a : $a );
> Aha! *THATS* the magic incantation!!!
> I don't quite understand it, but that's why I was couldn't fix the
> problem in the first place!
It means: if $a is a hash reference, then expand it out into key/value
pairs, otherwise (i.e. it's a simple scalar or a reference to something
else), just pass it as it is.
More information about the london.pm