httpd-wiki-changes mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Apache Wiki <wikidi...@apache.org>
Subject RewriteMap reverted to revision 5 on Httpd Wiki
Date Thu, 15 Jul 2010 12:59:32 GMT
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";
  }
  }}}
  

Mime
View raw message