in reply to Re: "Use of uninitialized value" with many variables
in thread "Use of uninitialized value" with many variables
my %txt = map { $_ => '' } qw{AnniversaryDate BirthDate EmailAddr FaxNo MobileMo ... };
When initializing hash keys all to the same value I've found this idiom helps me make fewer mistakes. It also means less repetitive typing. (For those of us who type slowly, that's important.)
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: "Use of uninitialized value" with many variables
by Aristotle (Chancellor) on Oct 06, 2003 at 03:14 UTC | |
by CombatSquirrel (Hermit) on Oct 06, 2003 at 07:59 UTC | |
by gwadej (Chaplain) on Oct 06, 2003 at 03:27 UTC |