Perl 6 Cool Perl 6 #9

Variables

As before, declare variables with my or our:

my $answer     = 42;
my $city       = 'Columbus';
our $pi_approx = 3.14;

By default, all variables must be declared

Copyright © 2010
http://www.pmichaud.com/2010/pres/