in reply to Embedded function or subroutine - which is better?
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
|
|---|