in reply to Re^2: Deleting undefined entries from DB_FILE hash
in thread Deleting undefined entries from DB_FILE hash
If then you suspect split function, then check what you are getting for each split "action" ( using print ), before assigning them to other variables. like so:
See if you have 7 seperate values. If not, then one can say try "\s+" in the split function, instead of the "\t" like so:print join "\n",split /\t/, $hash{$key}, 7;
If that works, then :-)! You got it!!!print join "\n",split /\s+/, $hash{$key}, 7;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Deleting undefined entries from DB_FILE hash
by gossamer (Sexton) on Jul 23, 2012 at 13:07 UTC |