Skip Menu |

Preferred bug tracker

Please visit the preferred bug tracker to report your issue.

This queue is for tickets about the CGI CPAN distribution.

Report information
The Basics
Id: 79917
Status: resolved
Priority: 0/
Queue: CGI

People
Owner: Nobody in particular
Requestors: flamesworld [...] gmail.com
Cc: CHORNY [...] cpan.org
AdminCc:

Bug Information
Severity: (no value)
Broken in: (no value)
Fixed in: (no value)



Subject: deprecated "defined(@array)"
Date: Fri, 28 Sep 2012 20:07:06 +0200
To: bug-CGI [...] rt.cpan.org
From: Joe Sullivan <flamesworld [...] gmail.com>
Getting this warning with every use: defined(@array) is deprecated at /usr/lib/perl5/vendor_perl/5.16.0/CGI.pm line 528. (Maybe you should just omit the defined()?) It would seem the recommendation to just removed the defined() seems to work. (Using CGI.pm 3.60 via OpenSUSE 12.2 RPM build)
Subject: Re: [rt.cpan.org #79917] deprecated "defined(@array)"
Date: Mon, 01 Oct 2012 10:00:53 -0400
To: bug-cgi [...] rt.cpan.org
From: Mark Stosberg <mark [...] summersault.com>
Thanks for the report, Joe. A link to the Perl 5.16 "perldelta" entry which covers this would be helpful. In any case, someone will look into this and get it updated. Mark
Subject: [rt.cpan.org #79917] deprecated "defined(@array)"
Date: Mon, 12 Aug 2013 13:07:31 +0200
To: bug-CGI.pm [...] rt.cpan.org
From: "Frédéric Buclin" <lpsolit [...] gmail.com>
This is documented here: http://search.cpan.org/~rjbs/perl-5.16.0/pod/perldiag.pod#defined%28@array%29_is_deprecated "defined(@array) is deprecated (D deprecated) defined() is not usually useful on arrays because it checks for an undefined scalar value. If you want to see if the array is empty, just use if (@array) { # not empty } for example."
Subject: Re: [rt.cpan.org #79917] deprecated "defined(@array)"
Date: Mon, 12 Aug 2013 04:11:20 -0700
To: Frédéric Buclin via RT <bug-CGI [...] rt.cpan.org>
From: Mark Stosberg <mark [...] stosberg.com>
Thanks, We'll get it taken care of. Mark
On Fri Sep 28 14:07:15 2012, flamesworld@gmail.com wrote: Show quoted text
> Getting this warning with every use: > > defined(@array) is deprecated at /usr/lib/perl5/vendor_perl/5.16.0/CGI.pm > line 528. > (Maybe you should just omit the defined()?) > > It would seem the recommendation to just removed the defined() seems to > work. > > (Using CGI.pm 3.60 via OpenSUSE 12.2 RPM build)
Line 528 of CGI.pm 3.60 is if (@QUERY_PARAM && !defined($initializer)) { ( https://metacpan.org/source/MARKSTOS/CGI.pm-3.60/lib/CGI.pm#L528 ) also source of CGI.pm 3.60 and current version from git does not contain "defined(@". -- Alexandr Ciornii, http://chorny.net
This issue has been copied to: https://github.com/leejo/CGI.pm/issues/105 please take all future correspondence there. This ticket will remain open but please do not reply here. This ticket will be closed when the github issue is dealt with.
Previously resolved by faf06265131acac542fd55abb0c27a587107da1d.