Gossamer Forum
Home : Products : Gossamer Links : Discussions :

defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231.

Quote Reply
defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231.

Hi,

I just upgrade perl to verion 5.16 and I got this error. Does anyone have this? It's just shown when we run the script in console.

Code:
defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231.
(Maybe you should just omit the defined()?)

Thanks!


Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231. In reply to
What version of GLinks are you using? What is on that line in Base.pm?

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231. In reply to
Thanks Andy!

It's version 3.3. And this is the line:

Code:
my @pkg_isa = defined @{"$class\:\:ISA"} ? @{"$class\:\:ISA"} : ();

Cheers,

Dat

Programming and creating plugins and templates
Blog
Quote Reply
Re: [tandat] defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231. In reply to
Mmm ok. Looks like its a common issue with newer versions of Perl:

http://www.gossamer-threads.com/...nks_P310561/#p310561

Its a bit weird though - as it looks like its checking the class exists with "defined", which is fine... then storing the appropriate value. I can't see any reason why that wouldn't work. Could be worth emailing support[@]gt.net to see if they have any input (they have most likely seen this before)

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] defined(@array) is deprecated at /var/www/html/admin/GT/Base.pm line 231. In reply to
Thanks for your info.

Cheers,

Dat

Programming and creating plugins and templates
Blog