CPAN::Forum
YAML - YAML fails
| Posted on Mon Jun 4 22:50:36 2007 by rbi |
| YAML fails |
|
Running This is perl, v5.8.5 built for x86_64-linux-thread-multi
YAML 0.62
2 bugs:
first, it fails with
YAML Error: Couldn't parse single line value
Code: YAML_PARSE_ERR_SINGLE_LINE
Line: 12
Document: 1
at /usr/lib/perl5/site_perl/5.8.5/YAML.pm line 33
using this file:--
# $Id: #
# Config file for all processor scripts. Format is YAML for
# cross language compatibility.
ruby_base_dir: /data/scripts/tnr/ruby #base dir for ruby app
archive_base: /data/archive/tnr/usage
in_base: /data/work/tnr/usage
out_base: /data/work/tnr/processed/ #will be appended to RAILS_ROOT if not absolute
logger_level: INFO #logging level for log parser. independent of logging level for Rails
inbound_log_delimiter: "\xbb" #delimiter for incoming logs
outbound_delimiter: "\t"
value_size_limit: 999 #values with size greater than this will be truncated
click_path_length: 5 #self explanitory
If I remove the \xbb line it works fine.
Second bug.
Heres' the output of a YAML dump. Please note the value of the key:value pair contains the comments. Shouldn't I would think...
---
archive_base: /data/archive/tnr/usage
click_path_length: '5 #self explanitory'
in_base: /data/work/tnr/usage
logger_level: 'INFO #logging level for log parser. independent of logging level for Rails'
out_base: '/data/work/tnr/processed/ #will be appended to RAILS_ROOT if not absolute'
outbound_delimiter: ' '
ruby_base_dir: '/data/scripts/tnr/ruby #base dir for ruby app'
value_size_limit: '999 #values with size greater than this will be truncated'
There we are.
Any thoughts would be appreciated.
Ray
|
| Write a response |
(8)
]