logo       
Google Custom Search
    AddThis Social Bookmark Button
-->

Re: cont'd: Dereferencing SCALAR references correctly: msg#00004

Subject: Re: cont'd: Dereferencing SCALAR references correctly
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.



<Prev in Thread] Current Thread [Next in Thread>