http://www.perlmonks.org?node_id=1000974


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