On Wed Sep 27 15:16:49 2017, PEVANS wrote:
Show quoted text> The REF and UNDEF types are somewhat special-cases of the generic
> scalar SV. This split seems increasingly artificial for what more of
> the tools seem to be doing. It may be best to remove it and have them
> all be just SCALARs.
On further consideration, the REF type at least seems potentially useful, because it means you can easily dereference RVs passed in as arguments to commands/etc by doing
$sv = $sv->rv if $sv->type eq "REF"
The alternative if SCALAR+REF were combined would look something like
$sv = $sv->rv if $sv->type eq "SCALAR" and $sv->rv
--
Paul Evans