in reply to Re: Re: How can I unbless an object?
in thread How can I unbless an object?
Output:package FOO; sub new { bless { key1 => 1, key2 => 2 }; } package main; my $foo = new FOO(); print "Look, first key = '$foo->{key1}'!\n";
Clearly, that $foo object is nothing but a reference to a hash. Simple as that.Look, first key = '1'!
# Under Construction
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Re: How can I unbless an object?
by mp (Deacon) on Jul 19, 2002 at 21:37 UTC |