diff options
author | Father Chrysostomos <sprout@cpan.org> | 2010-12-10 14:54:13 -0800 |
---|---|---|
committer | Father Chrysostomos <sprout@cpan.org> | 2010-12-10 16:09:32 -0800 |
commit | 6d1f0892ce0bd77f843552ab189aa5f121c374d4 (patch) | |
tree | 94a3bfc018033cdfc63ddd2519c51063f9498333 /win32/config_H.gc | |
parent | 98be99db6ff47327a7754b282e66c6be7eb35bb6 (diff) | |
download | perl-6d1f0892ce0bd77f843552ab189aa5f121c374d4.tar.gz |
[perl #72090] unitialized variable name wrong with no strict refs
$ ./perl -we '$a = @$a > 0'
Use of uninitialized value $a in array dereference at -e line 1.
Use of uninitialized value $a in numeric gt (>) at -e line 1.
S_find_uninit_var was not taking into account that rv2*v could return
undef. So it merrily looked at the child ops to find one that named
a variable.
This commit makes it skip any rv2av/rv2hv that does not have an OP_GV
as its child op.
In other words, it skips @{...} and %{...} (including the shorthand
forms @$foo and %$foo), but not @foo or %foo.
Diffstat (limited to 'win32/config_H.gc')
0 files changed, 0 insertions, 0 deletions