in reply to Re: Delay evaluation of tied scalar when returned from sub
in thread Delay evaluation of tied scalar when returned from sub
At which point the value needs evaluating. Haven't played with overload knowingly before but get the feeling it's likely to end up as a messy hack - that the variable gets used in some way I hadn't predicted, and fails to be evaluated. Gets me thinking though - wonder if there's some way by looking the call stack via caller?my $percentUsersOnline = ($usersOnline / $numUsers) * 100;
|
|---|