in reply to hashes filling up with funk
sub CookieCutter { my $raw_dough = "@_"; my ($cookie, $key, $value); undef %Cookies; foreach $cookie (split / /, $raw_dough) { if (not ($key, $value) = ($cookie =~ /^([^\=]+)\=([^\;\s]+)/)) + { if (($key) = ($cookie =~ /^([^\=]+)\=[\;\s+]/)) { $value = ''; } } $Cookies{ $key } = $value; } }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: hashes filling up with funk
by Chady (Priest) on May 01, 2001 at 22:20 UTC | |
by symŽ (Acolyte) on May 01, 2001 at 22:31 UTC | |
by Ovid (Cardinal) on May 01, 2001 at 22:41 UTC | |
|
(Ovid - cookies) Re(2): hashes filling up with funk
by Ovid (Cardinal) on May 01, 2001 at 22:36 UTC | |
|
Re: Re: hashes filling up with funk
by Anonymous Monk on May 02, 2001 at 00:54 UTC | |
by Anonymous Monk on May 02, 2001 at 07:43 UTC | |
by eejack (Hermit) on May 02, 2001 at 07:56 UTC |