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.
Try the following:
use strict; use warnings; #define a 10; print a;
And run this code using -P switch.
Example: perl -P macro.pl
perl -P macro.pl
And use the module Filter::cpp also.