in reply to constants wont optimize
It's much much simpler than that:
use constant haveMod => $mod::VERSION; print haveMod ? "goodMod" : "badMod";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: constants wont optimize
by patcat88 (Deacon) on Jul 10, 2011 at 18:09 UTC | |
by ikegami (Patriarch) on Jul 10, 2011 at 18:12 UTC | |
by patcat88 (Deacon) on Jul 10, 2011 at 20:58 UTC | |
by ikegami (Patriarch) on Jul 10, 2011 at 21:35 UTC |