-
Notifications
You must be signed in to change notification settings - Fork 565
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
pp_aassign(): fix ($x,$y) = (undef, $x)
With 808ce55, I tweaked the OPpASSIGN_COMMON flagging to mark as safe when the LHS or RHS only contains only one var. This turned out to be flawed for the RHS logic, as position as well as oneness is important: (undef, $x) = ...; # only 1 scalar on LHS: always safe ($x, $y) = (undef, $x); # 2 scalars on RHS: unsafe So this commit makes undef on the RHS count towards the scalar var count.
- Loading branch information
Showing
4 changed files
with
25 additions
and
2 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
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