![]() |
|
good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re: Importing constans and variables when "require"ingby Perlbotics (Bishop) |
on Feb 22, 2019 at 21:58 UTC ( #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
|
|