Heylp,
Don't know how this is possible, but I need to match text within a file
(over newlines) that looks like:-
$str = qq(
<udb:person>
<data_one>some data</data_one>
<data_two>some more data</data_two>
</udb:person>
<udb:company>
<data_one>some data</data_one>
<data_two>some more data</data_two>
</udb:company>
....
<udb:person>
<data_one>some data different to the first person</data_one>
<data_two>some more different data</data_two>
</udb:person>
);
What I need to do is something like:-
$str =~ s/<udb:[^>]+\n(.*?)<\/udb:$1>/$sub->($1,$2)/gs;
But putting the $1 on the LHS is not valid...
Any thoughts?
--
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
David Wood, Web Developer<br>
[a] Clickmusic Ltd, 99c Talbot Road, London W11 2AT<br>
[t] 020 7727 7500
<br>[w] www.clickmusic.co.uk<br>
<br>"There are three types of people in the world; those who can count,
and those who can't."
<br> </html>
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]