Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re: Problem using YAML

by Anonymous Monk
on Dec 29, 2011 at 18:48 UTC ( #945541=note: print w/replies, xml ) Need Help??


in reply to Problem using YAML

In particular I would substitute the --- with the name of hash variable.

No you wouldn't

$ perl -MYAML -e " print Dump { test => { 1 .. 4 } } " --- test: 1: 2 3: 4 $ perl -MYAML -e " print Dump yaml => { test => { 1 .. 4 } } " --- yaml --- test: 1: 2 3: 4 $ perl -MDDS -mYAML -e " Dump( YAML::Load( YAML::Dump( { test => { 1 . +. 4 } } ) ) )" $HASH1 = { test => { 1 => 2, 3 => 4 } }; $ perl -MDDS -mYAML -e " Dump( YAML::Load( YAML::Dump( yaml => { test +=> { 1 .. 4 } } ) ) )" $VAR1 = 'yaml'; $HASH1 = { test => { 1 => 2, 3 => 4 } };

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://945541]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (4)
As of 2022-08-12 15:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?