in reply to First Time Creating a Package, Am I doing this Right?
Lexicals (declared with my) can't be exported since they don't live in the symbol table. You need to declare it with our or use vars qw( %lists ), or fully qualify the name %Test::Parser::lists = ( ... ).
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: First Time Creating a Package, Am I doing this Right?
by Dru (Hermit) on Oct 05, 2004 at 16:16 UTC | |
by Ven'Tatsu (Deacon) on Oct 05, 2004 at 18:26 UTC |