CGI/Perl Guide | Learning Center | Forums | Advertise | Login
Site Search: in

  Main Index MAIN
INDEX
Search Posts SEARCH
POSTS
Who's Online WHO'S
ONLINE
Log in LOG
IN

Home: Perl Programming Help: Beginner:
Writing back to an XML document

 



Beast
New User

Apr 2, 2009, 1:07 PM

Post #1 of 1 (395 views)
Writing back to an XML document Can't Post

Hi everyone,

new to the forums....and relatively new to Perl. I'm writing a script that is going to use an already existing XML document to keep track of a set variable (set in the XML document initially) for each entry.

so....a mockup of the XML would look something like this:


Code
<employees> 
<client>
<name>name1</name>
<port>80</port>
<host>host1</host>
<hold>0</hold>
</client>
<employees>



what I want to be able to do, is as my perl script is checking each client, one by one.....to check the variable "hold" to see if it's anything but zero. If it is, I want it to add 1 to the value, until it's 12 (when it will reset to zero) .


I'm hung up at being able to write to a specific place in the xml file. Any help would be greatly appreciated

 
 


Search for (options) Powered by Gossamer Forum v.1.2.0

Web Applications & Managed Hosting Powered by Gossamer Threads
Visit our Mailing List Archives