The answers to the current batch of perl 6 questions is up. Check 'em out and, if what you wanted to know isn't there, then get it ready for the next round.
I
told a long time ago I am confident that, someday, someone will come with a program which
will allow to use perl as an extensible interactive shell; this will
relegate sh and csh in the rank of historically interesting tools..
One of the obstacle in Perl5 is the lack of scopeless
eval as I explained at
RFC 351:
Beyond the amnesic eval . I am happy that the
second that the second obstacle is over: perl6 as interactive
shell necessitates a tailored grammer mostly to make easier to write literals like file names but the material
on the apocalypse 5 shows that will be possible.
So I was partially happy when writing
Rex2: Interactive Perl vs. Shell Script.
Now you guess my question: will unscoped eval will be supported in perl6?
I doubt there will be somthing as specilized as scopeless eval. OTOH, there will be %MY, by which you may be able to create lexicals above the current scope. That, combined with some preprocessing or a command, would be sufficent to do what you need.
We are using here a powerful strategy of synthesis: wishful thinking. -- The Wizard Book
Thank you; Indeed I find the %MY:: pseudo-class mentionned at Apocalypse 2 -Names, used in the
Apocalypse 4 page 3 and discussed in Perl6-language
but I fail to see how it solves the issues I described
in my nodelet and the pages it links to.
Also opening the interactive biotop to Perl is well worth
a special feature if standard ones don't cut it without
mentionning the utility of an interactive Perl as a training device.
Scopeless subs and evals are both on the big list 'o features Parrot will support. There may be some issues with them, especially scopeless subs, but it should be doable at the perl level, if Larry chooses to expose it.