in reply to Re^2: How come @_ gets changed here?
in thread How come @_ gets changed here?
That commit merely causes that bug to show up where previously it happened to be masked. For example in 5.22.0 with this code:
you get:my @a=(3,4); sub x { @a = (); print "[$_]" for @_; print "\n"; } x(@a);
$ perl5220 -w ~/tmp/p Use of uninitialized value $_ in concatenation (.) or string at /home/ +davem/tmp/p line 9. Use of uninitialized value $_ in concatenation (.) or string at /home/ +davem/tmp/p line 9. [][]
Dave.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: How come @_ gets changed here?
by haukex (Archbishop) on Jun 11, 2017 at 13:09 UTC | |
Re^4: How come @_ gets changed here?
by Anonymous Monk on Jun 10, 2017 at 18:56 UTC | |
by dave_the_m (Monsignor) on Jun 10, 2017 at 19:04 UTC | |
by LanX (Saint) on Jun 10, 2017 at 19:16 UTC | |
by LanX (Saint) on Jun 10, 2017 at 19:08 UTC |