Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Nested Bless within Hash of Arrays

by chromatic (Archbishop)
on Jul 22, 2013 at 21:31 UTC ( #1045732=note: print w/ replies, xml ) Need Help??


in reply to Nested Bless within Hash of Arrays

I'm able to drill down the structure just like it's a typical HOA, but why bless?

bless associates the name of a package with a reference. It's ultimately how you create new object instances in Perl 5 right now.

You're seeing a textual serialization of your objects and how to thaw them.


Improve your skills with Modern Perl: the free book.


Comment on Re: Nested Bless within Hash of Arrays
Replies are listed 'Best First'.
Re^2: Nested Bless within Hash of Arrays
by ksublondie (Friar) on Jul 22, 2013 at 22:05 UTC
    As in BLOCK = $t->{elems}->[0]? But then what is $t->{elems}->[0]->{elems}->[1]->{elems}->[0] since it's also blessed as BLOCK?

      It's another instance of BLOCK, as in my $something = BLOCK->new( { ... } );, but without the intermediary $something.

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (7)
As of 2015-07-29 07:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (260 votes), past polls