How do I use macros in Perl, like I do in C?
Example:
#define value 100 print value;
I want to get the output as 100.
For constants, the common way is to use a constant subroutine that will get inlined by the compiler:
use constant value => 100;
or
sub value () {100}