Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Yep, that's why s///ee exists :)

http://perldoc.perl.org/perlop.html#s/PATTERN/REPLACEMENT/ms...

"e Evaluate the right side as an expression.

ee Evaluate the right side as a string then eval the result."



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: