laziness, impatience, and hubris | |
PerlMonks |
Re: Crazy constant question...by moritz (Cardinal) |
on Dec 15, 2010 at 21:23 UTC ( [id://877381]=note: print w/replies, xml ) | Need Help?? |
For your information, the inlining has two conditions: the sub needs a prototype of (), and the content needs to be a constant. So it would have to be something like:
Though calling import from constant is certainly the better solution.
In Section
Seekers of Perl Wisdom
|
|