Welcome to the Monastery | |
PerlMonks |
Re^2: Is it possible to store an arthimetric operator in a variable?by ikegami (Patriarch) |
on Jul 19, 2005 at 14:46 UTC ( [id://476133]=note: print w/replies, xml ) | Need Help?? |
You shouldn't use prototypes unless necessary, because of their side-effects. In this case, the prototype isn't even being checked because you're using a reference to the function.
And why bother with ?1:0 and ?0:1 since == already returns a boolean value.
In Section
Seekers of Perl Wisdom
|
|