3. use strict requires variables to be predeclared before use (among other things) Declare $varAlias with my or our before use and it will compile.Yeah, it will compile if you declare $varAlias with my, but that's as useful as removing the entire while block. Then the program will compile as well. If you declare $varAlias with my, you get a lexical $varAlias, with no relationship with the glob *varAlias. You want a package variable $varAlias, not a lexical $varAlias.
Abigail
In reply to Re: Declareing something with a *
by Abigail-II
in thread Declareing something with a *
by Scarborough
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |