in reply to clean code
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 Section
Seekers of Perl Wisdom