
KevinR
Veteran

Jul 28, 2009, 1:01 PM
Post #2 of 3
(305 views)
|
|
Re: [akula] Decode this for me?
[In reply to]
|
Can't Post
|
|
from prelrequick: The evaluation modifier s///e wraps an eval{...} around the replacement string and the evaluated result is substituted for the matched substring. http://perldoc.perl.org/perlrequick.html It enables you to insert code into the replacement side of a substitution regexp and have the code executed. Which is what that regexp is doing with the ternary operator in the replacement side of the regexp. It checks if $code equals </code> and if it does replaces it with <br /><code>. -------------------------------------------------
|