ingydotnet / yaml-pm

YAML Perl Module
http://search.cpan.org/dist/YAML/
20 stars 26 forks source link

LoadFile small example reloading an object #211

Closed LorenzoTa closed 5 years ago

LorenzoTa commented 5 years ago

hello and thanks for your work. I hope I picked the right file for the PR ;) I inserted a little example showing how to use LoadFile to reload an object. It is not directly pertinent to YAML but I find a very useful information that I did not encountered elsewhere. Discard the PR without worry if you think is misplaced.

thanks lorenzo

perlpunk commented 5 years ago

Unfortunately I think that's not the right place for this kind of documentation.

It would apply to Load and LoadFile, but also for anything returning a reference.

Also, the functions can return a list of references if there is more than one document in the YAML (file). In that case your usage would get wrong results.