in reply to Re: Having an Issue updating hash of hashes
in thread Having an Issue updating hash of hashes
This bit will stop working once you start getting multi-digit IDs:
$key = $1 if /^ID=(.)/;
You'll want this instead:
$key = $1 if /^ID=([^\s]+)/;
Otherwise you'll end up silently overwriting previous entries.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Having an Issue updating hash of hashes
by 2teez (Vicar) on Jul 05, 2014 at 18:54 UTC |