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
rbo...@rcbowen.com




---------------------------------------------------------------------
To unsubscribe, e-mail: docs-unsubscr...@httpd.apache.org
For additional commands, e-mail: docs-h...@httpd.apache.org

Reply via email to