You are viewing a plain text version of this content. The canonical link for it is here.
Posted to docs@httpd.apache.org by Rich Bowen <rb...@rcbowen.com> on 2010/07/15 14:58:14 UTC
Re: [Httpd Wiki] Trivial Update of "RewriteMap" by newacct
Quite apart from the fact that it's a really stupid example - this is
what mod_vhost_alias is for - the change takes a legible example and
makes it completely illegible. If you want to provide an obfuscated
version, fine, but leave the one that is at least marginally legible.
Or, if you really want to go the Perl Golf way,
print join '/', reverse split /\./,"/\n" while chomp <STDIN>;
Ha!
I've never been a big fan of making beginner documentation as
obfuscated as possible. It sort of defeats the purpose. This is Apache
HTTPD documentation, not Perl Wizardry.
On Jul 15, 2010, at 1:41 AM, Apache Wiki wrote:
> Dear Wiki user,
>
> You have subscribed to a wiki page or wiki category on "Httpd Wiki"
> for change notification.
>
> The "RewriteMap" page has been changed by newacct.
> http://wiki.apache.org/httpd/RewriteMap?action=diff&rev1=5&rev2=6
>
> --------------------------------------------------
>
>
> while(<STDIN>)
> {
> - chomp($_);
> + chomp;
> + print join '/', reverse split /\./, "/\n";
> - my @lables = split(/\./);
> - @lables = reverse @lables;
> - foreach my $label (@lables) {
> - $path .= $label . "/";
> - }
> - print $path . "\n";
> }
> }}}
>
--
Rich Bowen
rbowen@rcbowen.com
---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscribe@httpd.apache.org
For additional commands, e-mail: docs-help@httpd.apache.org