- or download this
sub test {
my ($x) = shift;
...
}
test(3); # 1,1,1
- or download this
sub test {
my ($x) = shift;
...
}
test(3); # 1,2,3
- or download this
sub foo {
my ($x) = shift;
...
}
foo(); # 2,2
- or download this
sub foo {
my ($x) = shift;
...
}
foo(); # 2,1