> Then I found a great book, and then the holy grail...

Look, imagine someone asking for a book about "Churches", because he needs to understand this "Religion" (which is probably Christianity)...

That's how confusing your question sounds.

Blessing is just a mechanism from Object Oriented Programming.

you could also see it from a "typing" perspective:

Perl has data with primitive types, like arrays, hashes and scalars (including subtypes like integer, string, etc.)

These types have properties and methods. like length or keys

Blessing is a way to construct new types, with new properties and methods.

OOP is one application of that, and 99% of all objects you'll encounter in Perl are just blessed hashrefs.

There is no definitive book which will list all blessed data, because every module can create it's own, you have to check the documentation.

> I'm doing or who's module I am using I get data with just one !VAR,

Sounds like you are using Data::Dumper to display some JSON data.

JSON derives from Javascript which has an explicit "type" (sic) Boolean which doesn't exist in Perl. It's represented by "1" and ""/0 there, there is no TRUE and FALSE.

BUT when reading JSON data you often need to distinguish between the "1" and TRUE.

That's why JSON converters create a Perl object for boolean to represent this type

And Dumper will show something like bless \1, "Boolean" for true (or something similar)

HTH! :)

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery


In reply to Re^3: Can I learn more about blessed data? by LanX
in thread Where can I learn more about blessed data? by SergioQ

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.