You are viewing a plain text version of this content. The canonical link for it is here.
Posted to wiki-changes@httpd.apache.org by Apache Wiki <wi...@apache.org> on 2010/07/15 14:59:32 UTC
RewriteMap reverted to revision 5 on Httpd Wiki
Dear wiki user,
You have subscribed to a wiki page "Httpd Wiki" for change notification.
The page RewriteMap has been reverted to revision 5 by RichBowen.
The comment on this change is: Converts legible Perl example into obfuscated one-liner. This isn't a Perl Wizardry tutorial..
http://wiki.apache.org/httpd/RewriteMap?action=diff&rev1=6&rev2=7
--------------------------------------------------
while(<STDIN>)
{
- chomp;
+ chomp($_);
- print join '/', reverse split /\./, "/\n";
+ my @lables = split(/\./);
+ @lables = reverse @lables;
+ foreach my $label (@lables) {
+ $path .= $label . "/";
+ }
+ print $path . "\n";
}
}}}