qtip has asked for the wisdom of the Perl Monks concerning the following question:

Hey guys, I'm trying out YAML, but I keep getting the following error: YAML Error: Stream does not end with newline character Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE How do I fix this problem?

Replies are listed 'Best First'.
Re: Perl YAML \n error
by Your Mother (Archbishop) on Apr 25, 2009 at 22:39 UTC

    :D to moritz.

    I have also accidentally hit that error by doing YAML::Load($file_name) when, obviously, I needed YAML::LoadFile($file_name).

Re: Perl YAML \n error
by moritz (Cardinal) on Apr 25, 2009 at 21:20 UTC
    Have you tried adding a newline to your YAML input?