i'm not sure if i understand what i'm talking about (so please correct me if i'm wrong!), but... in Perl 6 you could change the grammar, so you can get (at least syntax-level) compatibility with older versions, like Perl 5 or even Perl 4.
From What’s new in Perl 6 (The short form) by Dan Sugalski (the link points to a Microsoft Powerpoint file; there is also a
HTML version in the Google cache):
- Perl 6 grammar is really a perl 6 grammar
- That means you can change it if you want
- Don’t like . for deref? Change it
so if i'm not dreaming, you could distribute your application with the grammar for the version of Perl that you've developed against, so you don't have to worry about on what perl version your code will run, because your application will load the correct language version from by you specified grammar file.
i hope this makes some sense :)
:)))))
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.