Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: xml::libxml open, add and save not formatting properly

by ikegami (Patriarch)
on Mar 23, 2010 at 22:53 UTC ( [id://830413]=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    # Switch to UTF-8 if it's not already.
    $config->setEncoding('UTF-8');
    ...
    print $config_fh $config->toString(2);
    close($config_fh);
    chmod 0664, $configuri;
    
  2. or download this
    # Switch to UTF-8 if it's not already.
    $config->setEncoding('UTF-8');
    
    $config->toFile($configuri, 2);
    chmod 0664, $configuri;
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://830413]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others perusing the Monastery: (5)
As of 2024-04-19 13:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found