Re: cont'd: Dereferencing SCALAR references correctly

Jean-Michel Hiver <[email protected]>
Newsgroups gmane.comp.lang.perl.modules.petal
Message-ID <[email protected]>
> 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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.