RSS | Module Info | Add a review of Data-SearchReplace
Data-SearchReplace
(1.01)
Useful for template generation and manipluation. I needed to change the output of my data to encode all the URLs. The problem was that the URLs were in a complex data variable so I used the command:
sr({REGEX=>s/([^a-zA-Z0-9.-])/uc sprintf("%%%02x",ord($1))/eg},$data);
and I was good to go...
(I'm not only a user, I'm the author too)
Steve - 2003-10-03T19:41:35 (permalink)
Was this review helpful to you?
Yes
No

