develooper Front page | perl.perl5.porters | Postings from August 2001

tie my %foo, $object;

Thread Next
From:
Arthur Bergman
Date:
August 2, 2001 04:30
Subject:
tie my %foo, $object;
Message ID:
B78F0578.2AF7%arthur@contiller.se
Apperently, this works.

perl -le '$foo = bless {},"foo"; tie my %bar, $foo;sub foo::TIEHASH { print
$_[0]}'
foo=HASH(0x810577c)

It doesn't seem to be documented anywhere? Should it be?

(found it while browsing pp_tie).
-- 
Arthur


Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About