4 ms·
Did you know? Perl is pass-by-reference. sub mutate { $_[0] = "blue"; } my $color = "red"; mutate($color); print($color); # "blu
by amptorn 9y ago
Did you know? Perl is pass-by-reference.
sub mutate {
$_[0] = "blue";
}
my $color = "red";
mutate($color);
print($color); # "blue"