Camelia
Prev: Modules, Classes

Perl 5 to Perl 6

 @ARGV                    @$ARGS
 $0                       $PROGRAM_NAME
 foreach my $s (@arr) {}  for @arr -> $s { }
 
 $#array                   
 scalar @array            @array.elems    (@array.length not yet implemented ?)
 

Prev: Modules, Classes

Table of Contents

Comments

In the comments, please wrap your code snippets within <pre> </pre> tags and use spaces for indentation.
comments powered by Disqus

Perl 6 Tricks and Treats newsletter

Register to the free newsletter now, and get updates and news.
Email:
Name: