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

Re: Storing multiple blocks of text in the __DATA__ section

by RonW (Parson)
on Jan 06, 2015 at 00:04 UTC ( [id://1112268]=note: print w/replies, xml ) Need Help??


in reply to Storing multiple blocks of text in the __DATA__ section

Since you indicated an interested in ultimately moving the data to a separate file, I suggest YAML::Tiny

Using YAML::Tiny your data file would look like:

room: > some text here, probably something a few lines long wall: | another text, here, this time pre-formatted (but must be indented)

But, I'm not sure it will handle multiple paragraphs. More likely the pre-formatted syntax would because it uses indentation.

That said, your parser for your syntax might just be the best choice for your application.

Log In?
Username:
Password:

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

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

    No recent polls found