J
jtbutlerhvb
I am trying to append data in an XML file but first I want to remove
the final tag. I am having a problem removing the last line. It ends
up clearing the entire file. Anyone give me push in the right
direction as to how I can get rid of a certain string in an open file?
open(DAT, ">menu.xml");
while(<DAT>)
{
s/<\/menu>/ / ;
}
the final tag. I am having a problem removing the last line. It ends
up clearing the entire file. Anyone give me push in the right
direction as to how I can get rid of a certain string in an open file?
open(DAT, ">menu.xml");
while(<DAT>)
{
s/<\/menu>/ / ;
}