Did you expect anything else?##### Moose obj ##### --- !!perl/hash:Foo bar: barValue foo: fooValue ##### hashref ##### --- foo: fooValue
Update: Try it with any standard (non-moose) object: you will get the same result. An object is not a simple data-structure: Bless and keys only work their magic on non-object data-structures.
CountZero
A program should be light and agile, its subroutines connected like a string of pearls. The spirit and intent of the program should be retained throughout. There should be neither too little or too much, neither needless loops nor useless variables, neither lack of structure nor overwhelming rigidity." - The Tao of Programming, 4.1 - Geoffrey James
In reply to Re: Moose and YAML
by CountZero
in thread Moose and YAML
by llancet
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |