I think I'd make it a straight initialization from a list, using a split on either separator:
That's a little reliant on the data being what you expect (anything but one "=" in a record is unsupported). It reduces the temporary variables and looping quite a bit.my %data = split /[=;]/, $memory_data;
After Compline,
Zaxo
In reply to Re: clean code
by Zaxo
in thread clean code
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |