Posted by Toby A Inkster on 06/07/07 17:52
Jon Slaughter wrote:
> So I have to call the function first?
No. Equally, this would work:
if (Test::$probability < 0.5)
{
$truth = Test::call();
}
--
Toby A Inkster BSc (Hons) ARCS
[Geek of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 104 days, 1:37.]
URLs in demiblog
http://tobyinkster.co.uk/blog/2007/05/31/demiblog-urls/
Navigation:
[Reply to this message]
|