Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: How to resolve YAML Error

by greengaroo (Hermit)
on Oct 05, 2012 at 13:43 UTC ( #997478=note: print w/replies, xml ) Need Help??


in reply to How to resolve YAML Error

The error is simple. I've seen that many time: Code: YAML_PARSE_ERR_NO_FINAL_NEWLINE

Just put an extra newline at the end of your YAML file, like this:

#################################### --- myfile: - you: have to put: a newline character as the last line of this file ####################################

Of course without the #s!

Also, if your YAML file is empty, like moritz mentioned, that is wrong too!!

There are no stupid questions, but there are a lot of inquisitive idiots.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://997478]
help
Chatterbox?
[james28909]: well i have officially wore my brains out on hash refs and array refs and hash of arrays
[james28909]: push @{$hash{$ref}}, $this, $that, $the_other;

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (3)
As of 2017-05-01 03:30 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    I'm a fool:











    Results (544 votes). Check out past polls.