File "aa":#!/usr/bin/perl -P #include "aa" print $aa;
Things like use and require are, generally, to be preferred. Namespace issues argue against the conceptual cleanness of simple textual replication; namespace issues usually dominate. That is why Perl's #include mechanism is so clunky. Clunky--needs the C preprocessor and enables it in its entirety, which means all your comments are subject to preprocessing.$::aa = "Hi aa\n";
Be well,
Rob
In reply to Re: #include equivalent in Perl.
by rir
in thread #include equivalent in Perl.
by dislimit
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |