Trouble /w YAML in Perl

[email protected]
Newsgroups gmane.text.yaml.general
Message-ID <[email protected]>
I'm forwarding mail from Ray Bengen <[email protected]> that I
wasn't able to approve via MailMan since the admin interface on
sourceforge appears to be down at the moment.  Ray, have you tried
YAML::LibYAML? -- Clark
 
...

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. Here's 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

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.