[Petal] cont'd: Dereferencing SCALAR references correctly

Jean-Michel Hiver jhiver at mkdoc.com
Tue Jul 20 09:13:17 BST 2004


> Changing the last part of Petal/Hash/Var.pm to
> 
>     # return '' unless (defined $current);
>     # $current = "$current" if (defined $current);
>     return $$current if isa($current, 'SCALAR');
>     return $current;
> }
>                                                                                                     
> fixes this.

Ah cool. I like fixes ;-)

I'll put it in for the next version of Petal.


More information about the Petal mailing list