Perl 4 had the -P option, which would run the C preprocessor over your script before compiling it. That was eventually removed(for better or for worse).
Today, you'd want to use something described in perlfilter.
-Thomas
"Excuse me for butting in, but I'm interrupt-driven..."
In reply to Re: The Case for Macros in Perl
by thomas895
in thread The Case for Macros in Perl
by einhverfr
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |