devnul has asked for the wisdom of the Perl Monks concerning the following question:
Hello,
I'm having an issue with YAML module. Hopefully someone can help.
Let me be brief:
perl -e 'use YAML;$data{'zip'} = "07102";print YAML::Dump(\%data)' Outputs:
Devnul
I'm having an issue with YAML module. Hopefully someone can help.
Let me be brief:
perl -e 'use YAML;$data{'zip'} = "07102";print YAML::Dump(\%data)' Outputs:
My read of the spec (and experience with the parsers so far) is that a properly functioning parser will treat this as octal and return the value 3650. What I need is:--- #YAML:1.0 zip: 07102
Any ideas?zip: '07102'
Devnul
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: YAML module issue
by dragonchild (Archbishop) on May 12, 2006 at 02:44 UTC | |
by blazar (Canon) on May 12, 2006 at 11:52 UTC | |
by xdg (Monsignor) on May 12, 2006 at 12:05 UTC | |
by devnul (Monk) on May 12, 2006 at 20:57 UTC | |
Re: YAML module issue
by ingy (Initiate) on May 13, 2006 at 07:06 UTC | |
by devnul (Monk) on May 17, 2006 at 01:37 UTC |
Back to
Seekers of Perl Wisdom