in reply to Re: Re: Strange saving behaviour
in thread Strange saving behaviour

I think you may have misread it: that's an equality test in the last line, not an assignment =)

It returns the value of the last statement in the sub, i.e, the value of

$num == int($num);

Which is true (== 1) if $num and the integer part of $num are equal to each other, and false (==0)otherwise.

Philosophy can be made out of anything. Or less -- Jerry A. Fodor

Replies are listed 'Best First'.
Re: Re: Re: Re: Strange saving behaviour
by ChOas (Curate) on Feb 01, 2001 at 19:45 UTC
    *duck*...

    Totally right.. I missed the 2nd '=' there... SO sorry...

    GreetZ!,
      ChOas

    print "profeth still\n" if /bird|devil/;