Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
February 8, 2011, 1:26 pm
rate this thread
Say, every match of the following should invoke MyFunc on $1. Kind of like this
$my_string =~ s#<TD>(.*?)</TD>#<TD>&MyFunc( $1 )</TD>#g;
In other words, I want to substitute $1 with a result of a function
Can I do that in perl?
- » FAQ 6.6 How do I substitute case insensitively on the LHS while preserving case on the RHS...
- — Next thread in » PERL Discussions