I actually just a few minutes ago removed the LIMIT from the split, and it made no difference alone.
I also added the following line directly before the split line:
if(!defined($hash{$key})) { print "key $key ($hash{$key}) not defined\ +n"; delete($hash{$key}); next; }
For values where $hash{$key} isn't defined, it still outputs this:
Use of uninitialized value in concatenation (.) or string at ./list_ha +sh.pl line 33. key spam-de102f8ac36e56326312e8701b3b4520-20120419T161342-05203-09-2.g +z () not defined
In other words, the key (the spam-de... filename) is defined, but the rest of the values of the record are not.
The rest of the values include the email's subject, so switching \t for \s+ won't work, because email subjects have spaces in them.
If I run this program again, it prints the same 'uninitialized value' line at the same spot. Why doesn't it delete() the record? Eventually the hash is "untied", so it's properly closed. That's the issue that really has me perplexed now.
Thanks,In reply to Re^4: Deleting undefined entries from DB_FILE hash
by gossamer
in thread Deleting undefined entries from DB_FILE hash
by gossamer
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |