Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
PerlMonks  

Re: Re: Re: OO Perl: Methods To Reference Hash

by P0w3rK!d (Pilgrim)
on Jun 03, 2003 at 22:20 UTC ( #262814=note: print w/replies, xml ) Need Help??


in reply to Re: Re: OO Perl: Methods To Reference Hash
in thread OO Perl: Methods To Reference Hash

I changed the set method to this and it works now, but why? Do you have to do something special when passing in the hash to the set method? Is this the best practice?
sub set_hshAgg { my $self; my %hshToAgg; ( $self, %hshToAgg ) = @_; $self->{hshAgg} = \%hshToAgg; }

Thank you :)

-P0w3rK!d

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2021-03-01 01:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?