Most likely, somehow, $g::TaskList[0] is an alias to $_ (although I'm not entirely sure how that happened). And while(<LOG>) does not localise $_, meaning that you've just clobbered $_ through the while. Try putting your body into:
I'm betting the problem goes away here.{ local $_; $Body .= "$_<br>" while (<LOG>); }
In reply to Re: Side Effects
by Tanktalus
in thread Side Effects
by goodgulf
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |