Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Unwanted line breaks-- why?

by pvaldes (Chaplain)
on Oct 26, 2012 at 00:14 UTC ( #1000974=note: print w/ replies, xml ) Need Help??


in reply to Unwanted line breaks-- why?

If you want a database, maybe you should take a different focus and create a more flexible structure from the beginning.

%classic = ( TheMagicFlute1791Mozart => { title => "The Magic Flute", type => "opera", author => "Mozart", year => "1791", #... space for lots and lots of optional fields... }, Armida1783Haydn=> { title => "Armida", type => "Opera", author => "Haydn", year => "1783", characters => ["Armida","Rinaldo","Zelmira",...], # libretto => FORGET, ADD LATER, }, );

See hashes of hashes, hashes of arrays and perldoc perlreftut


Comment on Re: Unwanted line breaks-- why?
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (7)
As of 2015-07-30 07:02 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (270 votes), past polls