in reply to Re^2: Is it possible to store an arthimetric operator in a variable?
in thread Is it possible to store an arthimetric operator in a variable?
You are correct that the code isn't using the prototypes or requires the 1:0. I used them both, however, to be very clear to our anonymous reader what it was the code was doing. Also, I used 1:0 because I don't like using undef as a boolean false; it's not relevant here, but I find that 0 as false makes debugging easier which has led to this habit.
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Is it possible to store an arthimetric operator in a variable?
by ikegami (Patriarch) on Jul 19, 2005 at 15:22 UTC | |
by Adam (Vicar) on Jul 19, 2005 at 15:23 UTC | |
by benizi (Hermit) on Jul 20, 2005 at 19:17 UTC |
In Section
Seekers of Perl Wisdom