James Mastros wrote:
We can, and I think should, write a one-paragraph documentation, one-screenful implementation of this that's in perl core:
As a special case, if the "filename" argument to perl is a directory, and the directory contains a file named "main.pl", then the directory is prepended to @*INC, and main.pl is run.
Only [this] requires C<perl> support, and that support is very minimal.
I Agree.
This is much simpler than what i came up during the recent discussion about app packaging:
I touhght that it be nice to let module writers somehow associate their module with a file extention.
This could also be useful for Modules that change the standart Perl 6 Syntax. The module that contains these macros could associate itself with a extension (e.g. *.klingonpl / *.kpl)
In that way, its immediately clear that some macros are at work.
Maybe this helps in other cases aswell, where the header is somehow predefined and its not possible to add some shebang magic or a use- clause to indicate some special treatement...
Would such a feature be useful at all ?
Thomas Seiler