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

Re: "defined(@array) is deprecated"

Thread Previous
From:
Yitzchak Scott-Thoennes
Date:
March 14, 2007 22:05
Subject:
Re: "defined(@array) is deprecated"
Message ID:
loom.20070315T014830-380@post.gmane.org
Rafael Garcia-Suarez <rgarciasuarez <at> gmail.com> writes:
> Ooh look, this warning doesn't seem to work quite well :
> 
> [rafael@stcosmo ~]$ bleadperl -wle 'my <at> x;defined( <at> x)'
> defined( <at> 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( <at> 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.

Apparently intentional, via http://public.activestate.com/cgi-bin/perlbrowse/p/3970
with the following comment added by
http://public.activestate.com/cgi-bin/perlbrowse/p/6699:

            /* This is needed for
               if (defined %stash::)
               to work.   Do not break Tk.
               */







Thread Previous


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