Subject: | YAML auto-detection is borked |
The detection mechanism
if /--- #YAML:/ and $data_r->[0] eq $_;
will never work as the version directive is %YAML x.x. Actually it looks
like the YAML versioning is a mess as all of those seem to be valid in
different versions:
line1: ---
line2: first_value: 1
line1: --- %YAML:1.0
line2: first_value: 1
line1: %YAML 1.1
line2: ---
line3: first_value: 1
line1: %YAML 1.2
line2: ---
line3: first_value: 1
Also as a side note I believe no other serialization language has:
/^\s+-\skey:\svalue/
as an array element notation, so this can be thrown in the scoring
mechanism too.
Thanks for the great module! :)