|Just another Perl shrine|
Code cleanup; how best to deal with: defined(%hash) is deprecated at...by taint (Chaplain)
|on May 22, 2014 at 03:42 UTC||Need Help??|
taint has asked for the wisdom of the Perl Monks concerning the following question:
Greetings, Monks. I've been cobbling away at creating a Perl based CMS, for a few years now. It's turned out quite nice, and is very featurefull -- including a Forum.
To the point;
I'm currently looking at the following message from perl:
This, as many/most of you already know, was depreciated around v.5.10. The actual code block(s) that trigger the message are:
While Perl, itself, suggest simply removing defined, and I suppose I have little reason to doubt the brilliance of Perl -- hell, it's smarter than I am. But my investigations indicate that others looking to deal with this same situation, do so in a myriad of different ways. So I thought it prudent to get some feedback from those here, I've come to trust. :)
In other words; How would you deal with it?
Thanks, for all your time, and consideration.
¡λɐp ʇɑəɹ⅁ ɐ əʌɐɥ puɐ ʻꜱdləɥ ꜱᴉɥʇ ədoH