in reply to #include equivalent in Perl.
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
|
|---|