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";
  }
  }}}
  

Reply via email to