in reply to Re: Declareing something with a *
in thread Declareing something with a *
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
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Declareing something with a *
by El Linko (Beadle) on May 18, 2004 at 14:46 UTC | |
by Abigail-II (Bishop) on May 18, 2004 at 15:04 UTC | |
|
Re: Re: Declareing something with a *
by periapt (Hermit) on May 20, 2004 at 13:42 UTC | |
by Abigail-II (Bishop) on May 20, 2004 at 21:53 UTC |