- or download this
# `my ( ... ) = ...` evaluates the RHS in list context.
my ( $increment ) = @_;
- or download this
# `shift` is short for `shift( @_ )`
my $increment = shift;
- or download this
print $result;
- or download this
print "$result\n";
- or download this
say $result;
- or download this
$result += $increment;
- or download this
$result = $result + $increment;