develooper Front page | perl.perl5.porters | Postings from March 2007

"defined(@array) is deprecated"

Thread Next
From:
Rafael Garcia-Suarez
Date:
March 14, 2007 03:03
Subject:
"defined(@array) is deprecated"
Message ID:
b77c1dce0703140303g3245d525rc855fd94b6a8ac3d@mail.gmail.com
Ooh look, this warning doesn't seem to work quite well :

[rafael@stcosmo ~]$ bleadperl -wle 'my@x;defined(@x)'
defined(@array) is deprecated at -e line 1.
        (Maybe you should just omit the defined()?)
Useless use of defined operator in void context at -e line 1.
[rafael@stcosmo ~]$ bleadperl -wle 'defined(@x)'
Useless use of defined operator in void context at -e line 1.
Name "main::x" used only once: possible typo at -e line 1.

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About