[kw-pm] is perl 6 really that different?

Simon Law sfllaw at engmail.uwaterloo.ca
Tue Jul 8 19:06:50 CDT 2003


On Tue, Jul 08, 2003 at 04:21:53PM -0400, Andrew Kohlsmith wrote:
> > > I don't have the book, but that's one of perl6 changes- arrays and
> > > hashes retain their sigil when they're sliced/diced.
> 
> > holy crap.  so perl 6 is not even remotely backward compatible?
> > apparently, i have some serious reading to do.  thanks.
> 
> You can do that today, you just get a warning:
> 
> $ perl -wTe '@ary = ("Zaphod", "Ford", "Trillian"); $second_element = 
> @ary[1];'
> Scalar value @ary[1] better written as $ary[1] at -e line 1.
> Name "main::second_element" used only once: possible typo at -e line 1.

	Eliminate those errors with Perl6::Variables, written by our
favourite Australian Perl hacker.

Simon



More information about the kw-pm mailing list