Hi
I am writing a perl code which automatically forms
a function name using certain criteria and then calls the same
I have a run time error reporting function not
existing, if the function as such did not exist
But I would like the execution to continue
searching for other functions
So, is there any way I can find out if there is a
function that is already existing to make a decision to call
I tired using the following code
doesnt seem to work
my $func = \&TEST3;
if (! $func) {
print "Function TEST3 does not exist\n";
} else {
print "TEST3 Function Exists\n";
print &$func()." is return value\n";
}
if (! $func) {
print "Function TEST3 does not exist\n";
} else {
print "TEST3 Function Exists\n";
print &$func()." is return value\n";
}
Thanks and regards
Sasi
The information contained in this electronic message and any attachments to this message are intended for the exclusive use of the addressee(s) and may contain proprietary, confidential or privileged information. If you are not the intended recipient, you should not disseminate, distribute or copy this e-mail. Please notify the sender immediately and destroy all copies of this message and any attachments. WARNING: Computer viruses can be transmitted via email. The recipient should check this email and any attachments for the presence of viruses. The company accepts no liability for any damage caused by any virus transmitted by this email. www.wipro.com |
_______________________________________________ ActivePerl mailing list [email protected] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
