#!/usr/bin/perl6
... # Perl 6 stuff here
use 5; # or, whatever
# Perl 5 stuff here
no 5; # or, whatever
# More Perl 6 stuff here
use python; # you get the idea
Why conflate the two at all? Perl 5 has two separate syntaxes for forcing a version and embedding code in a different language:
use 5; # forces Perl < 6
perl_five_code();
use Inline::Perl6 q{ # Ah, the wonders of ponie...
perl_six_code();
};
use Inline::Python q{
python_code()
};So why not do the same (albeit in a much slicker way) for Perl 6?
use 6; # forces Perl 6+
perl_six_code(); {
use syntax 'perl5'; # switches to Perl 5 syntax
perl_five_code();
} {
use syntax 'python';
python_code()
} #With the indentation, I think this closes both the Perl and
# the Python block...-- Brent "Dax" Royal-Gordon <[EMAIL PROTECTED]> Perl and Parrot hacker
Oceania has always been at war with Eastasia.
