regex for teh win!
%data = $memory_data =~ /([^=]+)=([^;]*);?/g;
at least, depending on your definition on 'clean'...
update: I now noticed that my regex is almost identical to gellyfish's, but I assign directly to the hash...
In reply to Re: clean code
by Gilimanjaro
in thread clean code
by rsiedl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |