The stupid question is the question not asked | |
PerlMonks |
Re: Importing constans and variables when "require"ingby Perlbotics (Archbishop) |
on Feb 22, 2019 at 21:58 UTC ( [id://1230430]=note: print w/replies, xml ) | Need Help?? |
use const does it's trick by creating a sub that returns a then "constant" value. Use the function call parents to honour that fact in the context of the print statement at compile time.
In Section
Seekers of Perl Wisdom
|
|