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.
print "CONST=" . XYZ::CONST() . "\n"; # ^^-here
|Replies are listed 'Best First'.|
Re^2: Importing constans and variables when "require"ing
by bliako (Monsignor) on Feb 22, 2019 at 22:53 UTC