Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Stucked in YAML::Tiny

by Corion (Pope)
on Jul 16, 2012 at 14:09 UTC ( #982038=note: print w/ replies, xml ) Need Help??


in reply to Re: Stucked in YAML::Tiny
in thread Stucked in YAML::Tiny

Please show the exact code you're running. The symptoms you describe sound as if you're running

my $string = Dump(...);

without the appropriate use YAML::Tiny 'Dump'; at the top of your program. The documentation states that just three lines above your linked part of the documentation.


Comment on Re^2: Stucked in YAML::Tiny
Select or Download Code
Re^3: Stucked in YAML::Tiny
by Anonymous Monk on Aug 07, 2012 at 02:16 UTC
    For anyone else that finds this post when searching for a solution to this issue... For me it was because I had spaces before the '---' in my config file so the yaml object wasn't being created. It would be useful to have a check and output YAML::Tiny->errstr in the example for n00bs like myself :)
      I ran into the same issue (Can't call method "write" on unblessed reference at ...). In my case the yaml did not contain a newline. +1 for making the example check for YAML::Tiny-errstr

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (5)
As of 2014-07-31 02:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (244 votes), past polls