X-Git-Url: http://git.vpit.fr/?a=blobdiff_plain;f=lib%2FSub%2FNary.pm;h=eaa378e1aead72279fdf2231aff9c5584a2e18e1;hb=c2cd664de815b04c82497a649abd06b3dd9e8711;hp=b87eaefc48736e2256b048e67517b94ce313700b;hpb=6619a43e229405fbb631fad34260619c65f3637c;p=perl%2Fmodules%2FSub-Nary.git diff --git a/lib/Sub/Nary.pm b/lib/Sub/Nary.pm index b87eaef..eaa378e 100644 --- a/lib/Sub/Nary.pm +++ b/lib/Sub/Nary.pm @@ -448,6 +448,15 @@ sub pp_rv2av { $self->inspect($op); } +sub pp_sassign { + my ($self, $op) = @_; + + my $r = ($self->inspect($op->first))[0]; + + my $c = 1 - count $r; + return $r, $c ? { 1 => $c } : undef +} + sub pp_aassign { my ($self, $op) = @_; @@ -596,7 +605,7 @@ You can contact me by mail or on #perl @ FreeNode (vincent or Prof_Vince). =head1 BUGS -Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. +Please report any bugs or feature requests to C, or through the web interface at L. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. =head1 SUPPORT