Many reading this thread can probably already figure this out, but it hasn't been stated directly so...
Note that you can get your subs to be just as fast1 by adding "()" after each's name. That is, replace something like:
sub DoesNotChange { 5; }
with
sub DoesNotChange() { 5; }
1 But who cares? If you couldn't notice the speed difference w/o resorting to Benchmark...
- tye
In reply to Re: OOP - Constant Vs. Subroutine ()
by tye
in thread OOP - Constant Vs. Subroutine
by 2xlp
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |