in reply to Strict Usage
That should be%words = qw ( fred camel barney llama betty alpaca wilma alpaca );
my declares a variable to be a lexical, which means "non-global". You have to declare all your variables the first time you use it to be 'strict', so to speak.my %words = qw ( fred camel barney llama betty alpaca wilma alpaca );
------
/me wants to be the brightest bulb in the chandelier!
Vote paco for President!
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re (tilly) 2: Strict Usage
by tilly (Archbishop) on Aug 22, 2001 at 17:27 UTC |