Well, if what the function returns depends on $run, you know ahead of time what mode it is in
This is really easy to avoid by documenting what the function returns, and always returning the same thing regardless of context
In reply to Re: Detecting type of output from subs
by Anonymous Monk
in thread Detecting type of output from subs
by mogul
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |