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.)
In reply to Re: Re: "Use of uninitialized value" with many variables
by gwadej
in thread "Use of uninitialized value" with many variables
by Massyn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |