Dear all,
I am trying to find whether a particular subroutine exists or not.
so far I have tried...is
if (&test;) { test(); } sub test { #do something; }
If the subroutine "test" does not exists, it is popuping an error as :
Undefined subroutine &main::test called at script.pl
Kindly suggest me.
Thanks
King
In reply to how to find a subroutine exists or not by kingofking
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |