Thank you to all of you who responded to my question about pasing hashes 
into a function.   The -> operator did the trick.
My problem was that I thought once I passed the hash in, I could 
dereference it   That doesn't appear to work like I expected.

sub mod_hash {
    my $hash_ref = @_;
    my %hash = %$hash_ref;

 
    $hash{key} = 0;


etc,etc,etc.

It appears that that just makes a local copy of the hash, then disposes of 
that copy at the end of the subroutine.  I think I kind of understand why 
this doesn't work.

Thanks again for you help,

John

-- 
John Ross 
Systems Management Integration Professional - Adv 
Data Management Solutions 
IBM
16011 College Blvd. 
Lenexa, KS  66219 
IBM Tie Line:  337-8611
Tel:  (913) 599-8611        Fax:  (913) 599-8565 

Reply via email to