forked from Perl/perl5
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[perl Perl#3112] Stop last from returning values
In push @A, last, it can try to return the @A, copying it like a sca- lar in the process, resulting in Bizarre copy of ARRAY in last. In do{{&{sub{"Just another Perl hacker,\n"}},last}}, it returns "Just another Perl hacker,\n". The former is clearly a bug. The latter depends on a side-effect of the same bug. ‘last’ really should not be trying to return the values that the same statement has accumulated so far.
- Loading branch information
Father Chrysostomos
committed
Sep 20, 2013
1 parent
7497b91
commit 0c0c317
Showing
2 changed files
with
17 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters