in reply to Re: How to write better code?
in thread How to write better code?
my $cgi_query_string = "name=alex&sex=m"; my %query = map {split m{=}} split m{&}, $cgi_query_string;
I realise this might be a step too far for some but I find it easier to see the wood for fewer trees. Others may (and probably will) disagree.
Cheers,
JohnGG
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: How to write better code?
by jbert (Priest) on Dec 04, 2006 at 17:18 UTC | |
|
Re^3: How to write better code?
by imp (Priest) on Dec 04, 2006 at 17:20 UTC | |
by johngg (Canon) on Dec 04, 2006 at 20:21 UTC |