Joe Discenza wrote:
"Veli-Pekka Tätilä" wrote, on Sun 10/9/2005 15:58
replacement is so complex that it cannot be
expressed as a straight substitution. So I would have to find a
piece of text, process it in a separate function, and replace the
matched text with the newly computed text. This goes on for n
interesting matches in the input.
I can't tell from your note if you've investigated the /e flag yet,
that allows you to replace a chunk of text with the result of a
function call:
s/(stuff that's not a note)?(note)/$1tag_from_note($2)/ge;
Hi Joe,
The e-flag was just what I was looking for, thanks. Being Perl, I guessed
there would be some easy way of achieving the desired effect. The perlop
page is not that hierarchically structured so I missed the e-flag there.
Partly because there are only a couple of lines about it but that's what you
get in a reference manual, <grin>.
--
With kind regards Veli-Pekka Tätilä ([EMAIL PROTECTED])
Accessibility, game music, synthesizers and programming:
http://www.student.oulu.fi/~vtatila/
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs