How to declare perl variable without using "my" -


i'm new perl programming. i've noticed every time want declare new variable, should use my keyword before variable if strict , warnings on (which told do, reasons not know.)

so how declare variable in perl without using my , without getting warnings?

my question is: possible declare variable without using my , without omitting use strict; , use warnings; , without getting warnings @ all?

there 2 means of declaring lexical variables: my , our, they're not interchangeable, lexical created our aliased package variable.

the vars pragma , our can seen means of declaring package variables.

use strict; wont die declared variables, , use warnings; wont warn declared variables (unless count "used once"), have no idea why mentioned them.


Comments

Popular posts from this blog

python - How to create a legend for 3D bar in matplotlib? -

java - Multi-Label Document Classification -

php - Dynamic url re-writing using htaccess -