in reply to Hash-slicing question...

Another solution is to change how your function call handles defaults. Depending on how you set it up, they won't get clobbered:
sub functionCall{ my ($hashref) = @_; my %defaults = ( A => 1, D => 4, ); %$hashref = ( %$hashref, %defaults, ); }
You can change this to true defaults if you switch the order to:
%$hashref = ( %defaults, %$hashref, );

Replies are listed 'Best First'.
Re: Re: Hash-slicing question...
by dragonchild (Archbishop) on Aug 29, 2001 at 16:21 UTC
    That would definitely be a thought, but the functions I'm using are from a set of libraries whose behavior I can't change. *shrugs*

    ------
    /me wants to be the brightest bulb in the chandelier!

    Vote paco for President!