I'm trying to do the opposite of what you're suggesting. I explicitly don't want to call it if it's a function.
$func = "format_hard_drive"; print "Good news, function exists!" if eval { &$func() };
In reply to Re^2: Yet another does-function-exist question
by xaprb
in thread Yet another does-function-exist question
by xaprb
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |