Does this have to be hard coded in to the script? Just wondering since I have been kinda following this thread.Feb 26, 2010 01:56:02 PM, perl-win32-users-boun...@listserv.activestate.com wrote:
It looks like what u want to do is attribute folding. That's when u take anested XML tag and make it an
Yes, you could use an XML parser to do the job described below
but this case is pretty simple. Here's my offering
leaving out the reading/writing of the files.
--
my $s = <<"EOF";
APOE e4 variant 18
arousal disorders disorders of arousal
arterial blood gas tests 32
asthma
anhaiya
- Original Message -
From: "Brian Raven"
To:
Sent: Friday, February 26, 2010 10:22 PM
Subject: RE: Perl Regex
>
> From: perl-win32-users-boun...@listserv.activestate.com
> [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of
> Kp
It looks like what u want to do is attribute folding. That's when u take a
nested XML tag and make it an attribute of an enclosing tag. Ur doing
something slightly different which is merging equal depth tags. The right
way to do this is with an XML parser. Look into XML::Simple to get started.
From: perl-win32-users-boun...@listserv.activestate.com
[mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of
Kprasad
Sent: 26 February 2010 15:56
To: perl-win32-users@listserv.ActiveState.com
Subject: Perl Regex
> Hi All
>
> What will be the perfect Regular Expression to conv