You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
unitialized variable name wrong with no strict refs #10081
$ ./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.
That second warning is wrong. It should be
Use of uninitialized value in numeric gt (>) at -e line 1.
Hash derefence has the same error in the warning for numeric gt. Scalar
dereference does not.
Activity
p5pRT commentedon Jan 14, 2010
From @nwc10
Created by @nwc10
$ ./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.
That second warning is wrong. It should be
Use of uninitialized value in numeric gt (>) at -e line 1.
Hash derefence has the same error in the warning for numeric gt. Scalar
dereference does not.
Nicholas Clark
Perl Info
p5pRT commentedon Dec 11, 2010
From @cpansprout
Fixed by 6d1f089.
p5pRT commentedon Dec 11, 2010
@cpansprout - Status changed from 'new' to 'resolved'