On Monday 14 November 2011 03:09:01 Puneet Kishor wrote:
This is bizarre.
<snipped fine-looking config>
The above config file works just fine on my laptop, but fails on my server with the following message
$perl bin/app.pl Use of uninitialized value in numeric gt (>) at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML/ Loader.pm line 718, [...] Loader.pm line 407, <$IN> line 1. Unable to parse the configuration file: /Users/punkish/Sites/app/config.yml: YAML Error: Invalid element in map Code: YAML_LOAD_ERR_BAD_MAP_ELEMENT Line: 9 Document: 1 at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/YAML. pm line 36 at /Users/punkish/perl5/perlbrew/perls/perl-5.14.1/lib/site_perl/5.14.1/Dance r/Config.pm line 204
[...] Hmm. Do you know what version of YAML.pm you have installed on your server? If it's not the latest, could you try updating it, and see if the problem persists? Can you see if you can parse the YAML directly, without Dancer's involvement? E.g.: perl -MData::Dump=pp -MYAML -E 'say pp(YAML::LoadFile("config.yml"));' -- David Precious ("bigpresh") http://www.preshweb.co.uk/ "Programming is like sex. One mistake and you have to support it for the rest of your life". (Michael Sinz)