]> git.vpit.fr Git - perl/modules/Sub-Nary.git/blobdiff - lib/Sub/Nary.pm
Move misc XS tests to t/15-misc-xs.t, including scalops tests. Simplify pp_rv2av
[perl/modules/Sub-Nary.git] / lib / Sub / Nary.pm
index ef92fa178aab2f41bef787150aae2aec7b6ffca1..838fab0c7cfd79dfa807c6473311439894f7a872 100644 (file)
@@ -446,12 +446,11 @@ sub pp_rv2av {
  my ($self, $op) = @_;
  $op = $op->first;
 
- my ($r, $l) = $self->inspect($op);
- if (name($op) ne 'const') {
-  my $c = 1 - count $r;
-  $l = $c ? { list => $c } : 0;
+ if (name($op) eq 'gv') {
+  return undef, { list => 1 };
  }
- return $r, $l; 
+
+ $self->inspect($op);
 }
 
 sub pp_aassign {