Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re: Re: Re: When hashes aren't enough

by freddo411 (Chaplain)
on May 25, 2004 at 17:08 UTC ( [id://356295]=note: print w/replies, xml ) Need Help??


in reply to Re: Re: When hashes aren't enough
in thread When hashes aren't enough

Why Not do both XML and HOH? Try: Config::General Write your HOH as XML, and with a few lines:
use Config::General; my %CF = ParseConfig("./config.dat");

turn it into HOH in your code.

The module lets you write out hashes as files too.

-------------------------------------
Nothing is too wonderful to be true
-- Michael Faraday

Replies are listed 'Best First'.
Re: Re: Re: Re: When hashes aren't enough
by ihb (Deacon) on May 30, 2004 at 20:29 UTC

    Why overkill and do more work than you need to? As you say, the module lets you write out hashes to files too. If you ever need to represent it as anything other than hashes, you can do that work then. By the time you need it, you may even want to use another format. Writing the data as hashes is no extra work (less, rather) than writing the data as XML.

    ihb

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (4)
As of 2024-03-28 14:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found