Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: clean code

by Gilimanjaro (Hermit)
on Apr 21, 2006 at 10:58 UTC ( #544848=note: print w/ replies, xml ) Need Help??


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...


Comment on Re: clean code
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://544848]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (4)
As of 2014-07-30 23:24 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (241 votes), past polls