perl error messages and the resolutions

Solution Unverified - Updated -


  • The following messages are observed after upgrading from perl-5.8.8-27.el5 to perl-5.16.3-286.el7.

  • Message 1:

 AH01215: Use of "do" to call subroutines is deprecated at ./ line 291., referer:
  • Message 2:
 AH01215: defined(%hash) is deprecated at line 693., referer:
  • Message 3:
 AH01215: \t(Maybe you should just omit the defined()?), referer:
  • Questions:
- Reason why above-mentioned messages are observed after migrating from perl-5.8.8-27.el5 to perl-5.16.3-286.el7.
- Workarond or resolution in order for the above-mentioned messages to dissapear.


  • Red Hat Enterprise Linux 5
  • perl-5.8.8-27.el5
  • Red Hat Enterprise Linux 7
  • perl-5.16.3-286.el7

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content