Declaring variables in perl really does seem quite a mess, between use vars,my,our,local,strict on/off.
Whether strict is on or off doesn't matter for the type of variable. Strictness doesn't change the meaning - it just prevents you from doing certain things. Use the following table:
| Package var | Lexical var | |
|---|---|---|
| Global scope | use vars | — |
| Lexical scope | our | my |
Abigail
In reply to Re: Declareing something with a *
by Abigail-II
in thread Declareing something with a *
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |