Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation

Re: Data-driven Programming: fun with Perl, JSON, YAML, XML...

by CountZero (Bishop)
on Apr 19, 2015 at 16:48 UTC ( #1123971=note: print w/replies, xml ) Need Help??

in reply to Data-driven Programming: fun with Perl, JSON, YAML, XML...

Personally, I'm a big fan of YAML, it is expressive, easy to parse, read and write, but none of that is relevant for your question. Just use the format your co-workers are most familiar with, or even use all of these formats. It wouldn't be to difficult to write a routine that can translate each format into your internal data-representation and back again into another format.

The only formats I wouldn't use are those that are directly evaled as this will have important security concerns or those that put the data into modules, again for security reasons.


A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James

My blog: Imperial Deltronics

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (4)
As of 2022-05-24 19:07 GMT
Find Nodes?
    Voting Booth?
    Do you prefer to work remotely?

    Results (84 votes). Check out past polls.