OK, thanks all. After enlightenment I have found a decent solution
As the requirement comes from an HTML form (returns '1' if ticked), the code I am now using to call the function is thus:
debug() if $request{'debug'};
Short and sweet :)
Nick
In reply to Re: Embedded function or subroutine - which is better? *UPDATE*
by Linicks
in thread Embedded function or subroutine - which is better?
by Linicks
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |