Ok, thank you, I understand "package main" is not necessary.
I am surprised by your insistence in saying that "require" is an equivalent of an include. I suppose it is a question of word. What I call a "simple include", is like a macro, a textual equivalence, like macros or include processed by a C preprocessor : no syntax analysis is done. This is opposite to "require" which "load in external functions from a library at runtime" : I never said that I wanted to include
fonctions nor make a
library, I want a "simple include"...
I would have accepted the answer that what I want to do is not possible, that it is not in the spirit of perl, coming from you a so good famous "saint"...I wonder if there is not something else that I miss.
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.