Re: Change tag case

2009-11-07 Thread Robert Citek
On Sat, Nov 7, 2009 at 4:45 AM, Ramesh, Marimuthu wrote: > I have some 3000 sgml files, where I need to change the tag case from > upper case to lower case. > > Example: Change This is an image to id="IMG1">This is an image. > > Note that the tag name and the attribute name should only change and

RE: Change tag case

2009-11-07 Thread Ramesh, Marimuthu
@_; $currentTag = lc($name); print $currentTag; } Regards, rummy From: tom smith [mailto:climbingpartn...@gmail.com] Sent: Saturday, November 07, 2009 3:58 PM To: Ramesh, Marimuthu Cc: beginners@perl.org Subject: Re: Change tag case On Sat, N

Re: Change tag case

2009-11-07 Thread tom smith
On Sat, Nov 7, 2009 at 2:45 AM, Ramesh, Marimuthu wrote: > > > Hi, > > > > I have some 3000 sgml files, where I need to change the tag case from > upper case to lower case. > > > > Example: Change This is an image to id="IMG1">This is an image. > > > > Note that the tag name and the attribute nam

Change tag case

2009-11-07 Thread Ramesh, Marimuthu
Hi, I have some 3000 sgml files, where I need to change the tag case from upper case to lower case. Example: Change This is an image to This is an image. Note that the tag name and the attribute name should only change and not the values. Can anyone help please? If it is a code f