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.
Perl is not C. You would be much better served by learning the corresponding Perl idioms (such as the already mentioned use constant value => 100) than by trying to drag C idioms into Perl.
use constant value => 100