What exactly does our do ?
See the documentation.
So why use my anyway ?
Because scoped variables are easier to handle than global variables.
"The first rule of Perl club is you do not talk about
Perl club."
-- Chip Salzenberg
In reply to Re^3: difference between my and local
by davorg
in thread difference between my and local
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |