Variables
As before, declare variables with my or our:
my $answer = 42; my $city = 'Pittsburgh'; our $pi_approx = 3.14;
By default, all variables must be declared
Perl 6 | Perl 6 today | #18 |
As before, declare variables with my or our:
my $answer = 42; my $city = 'Pittsburgh'; our $pi_approx = 3.14;
By default, all variables must be declared
Copyright © 2009 http://www.pmichaud.com/2009/pres/ |