Print out $online_indicator just after defining it. This will tell you what you really got.
In reply to Re: pulling php into perl by fglock in thread pulling php into perl by th3monk3y