#!/usr/bin/perl use YAML::Syck; use strict; my $hashref = Load(<<'...'); --- title: This is my title body: | This is some text. Here's a newline: Yet more text. ... print Dump($hashref); #### --- body: "This is some text. Here's a newline:\n\nYet more text.\n" title: This is my title #### #!/usr/bin/perl use YAML; use strict; my $hashref = Load(<<'...'); --- title: This is my title body: | This is some text. Here's a newline: Yet more text. ... print Dump($hashref); #### --- body: | This is some text. Here's a newline: Yet more text. title: This is my title