Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^3: Stucked in YAML::Tiny

by Anonymous Monk
on Aug 07, 2012 at 02:16 UTC ( #985863=note: print w/ replies, xml ) Need Help??


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

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 :)


Comment on Re^3: Stucked in YAML::Tiny
Replies are listed 'Best First'.
Re^4: Stucked in YAML::Tiny
by Anonymous Monk on Aug 19, 2012 at 19:36 UTC
    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://985863]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2015-08-03 07:11 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (26 votes), past polls