Perl 6 Cool Perl 6 #11

Creating lists

In Perl 6, <...> takes the place of Perl 5's qw()

Each of the following do the same thing:

@suits = ('Clubs', 'Diamonds', 'Hearts', 'Spades');

@suits = qw { Clubs Diamonds Hearts Spades };

@suits = < Clubs Diamonds Hearts Spades >;
continued...
Copyright © 2010
http://www.pmichaud.com/2010/pres/