in reply to Make sense?

Looks fine to me. It's rather similar to...
sub _init { my $this = shift; my $that = { @_ }; while( my ($k, $v) each %$that ) { $this->{$k} = $v; } }

... but it uses hash slices instead. Does that make more sense?

-Paul

Replies are listed 'Best First'.
Re^2: Make sense?
by Anonymous Monk on Jul 19, 2007 at 16:13 UTC
    Of course. Thanks very much :).
    Forgetting about hash slices, the @{$self} led me to believe I was dereferencing some array.