versussub one { my $x = "we are in one()\n"; print $x; two(); print $x; } sub two { my $x = "we are in two()\n"; print $x; } one();
sub one { our $x = "we are in one()\n"; print $x; two(); print $x; } sub two { our $x = "we are in two()\n"; print $x; } one();
Don't use our() until you learn what does it really mean.
Jenda
Enoch was right!
Enjoy the last years of Rome.
In reply to Re^3: Is use strict always appropriate?
by Jenda
in thread Please help me print this hash.
by Je55eah
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |