This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Optimise my(@array)=split
authorFather Chrysostomos <sprout@cpan.org>
Sun, 12 Oct 2014 07:20:26 +0000 (00:20 -0700)
committerFather Chrysostomos <sprout@cpan.org>
Sun, 12 Oct 2014 07:20:26 +0000 (00:20 -0700)
commitef7999f1f1914f1a33743bbfa196e39f7f041445
tree518140efede862da6359f6ab80da52768f8a39c4
parentfd017c00b1282d493d81ce54d392bc0c3a3ae001
Optimise my(@array)=split

Even though we can’t optimise away the array op for my(@array),
local(@array), and @{foo()}, we can still optimise away the assign-
ment.  Just have split pop the array off the stack and Bob’s
your Uncle.
lib/B/Deparse.pm
lib/B/Deparse.t
op.c
pp.c