]
Subject: Re: [Perl-unix-users] Multiline substitution
Nikko Odiseos wrote:
> I have just done an xml dump of several thousand records from a db.
> I have to actually go through each one as the xml from the db has the
> following:
>
>
>
>
>
> (all the values in thes
Okay, I spoke too soon... I didn't notice the change from the usual /'s to
|''s.
Matt
___
Perl-Unix-Users mailing list
[EMAIL PROTECTED]
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
Nikko Odiseos wrote:
> I have just done an xml dump of several thousand records from a db.
> I have to actually go through each one as the xml from the db has the
> following:
>
>
>
>
>
> (all the values in these fields are empty)
>
> but needs to have this instead:
>
>
>
>
>
>
>
>
> while () {
> $_ =~ s|()|$1 name="features"/> name="features"/>|smg;
> print $_;
> }
Try it with backslashes in front of the slashes.
while () {
$_ =~ s|()|$1<\/value>|smg;
print $_;
}
Matthew Musgrove
__
I have just done an xml dump of several thousand records from a db.
I have to actually go through each one as the xml from the db has the
following:
(all the values in these fields are empty)
but needs to have this instead:
I thought this might work but it does not do a substituti