Skip to content

Instantly share code, notes, and snippets.

@slackorama
Created February 27, 2010 00:46
Show Gist options
  • Save slackorama/316349 to your computer and use it in GitHub Desktop.
Save slackorama/316349 to your computer and use it in GitHub Desktop.
Seriously, WTF?
$self->assign(
'ext_list',
[ map {
my @l = split /,/;
my $count = 0;
my $r = [
$l[0],
{ map +( int( $count++ % 2 ) == 0 ? lc $_ : $_ ),
@l[ 1 .. $#l ]
}
];
for ( values %{ $r->[1] } ) { # url-decode here
$_ = uri_unescape($_);
}
$r;
} split /;/,
$rA->[0]
],
'supress_cookie' => $rA->[1],
'options' =>
{ map +( split "\t", $_, 2 )[ 0, 1 ], split /;/, $rA->[2] },
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment