On Mon, Sep 10, 2001 at 11:27:51AM +0200, Edwin G?nthner wrote:
> The pseudo-hashes have no autovivification - therefore
> $self->{recieve} will result in an error. When using
> hashes, the new hash entry is created without my knowledge.
[snip]
> And as far as I understand there is no way to avoid this
> behaviour when using hashes.
For hashes, the way to avoid this behaviour is to use Tie::SecureHash,
mentioned in the book you're reading, _Object Oriented Perl_. There's also
at least one other alternative, mentioned in the same book, of using an
array instead, with constants to label indices.
Michael
--
Administrator www.shoebox.net
Programmer, System Administrator www.gallanttech.com
--
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]