On Dec 9, 2003, at 2:37 PM, Tom Kinzer wrote:

Rob, can you explain the details of that replace? That's pretty slick. I
see you're adding the hex value to get to the appropriate ASCII value, but
didn't know you could do some of that gyration inside a regex.

The big secret there is the /e modifier at the end of that regex. That allows the use of Perl code (to be evaled) as the replacement string. You're right though, I thought it was slick too.


James


-- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] <http://learn.perl.org/> <http://learn.perl.org/first-response>




Reply via email to