in reply to Re: Passing a complex array to a function
in thread Passing a complex array to a function

trs++ to you on this answer. I was heading down a long and sloppy road with my attempt.I'm sure that this was probably someone's homework at some point :-) If only I could be so lucky as to have a good Perl course availible. Otherwise I learn from books, at my job, and from silly practices like this.(and of couse from staying tuned to perlmonks)

One Question, This looked like a possible typo, but I haven't tried to use your code yet.
'Jack Smith' => 0 # same amount as his wife
Should that be a 1?
japhy I'm truly impressed. ...and a little frightened.

Replies are listed 'Best First'.
Re: Re: Re: Passing a complex array to a function
by trs80 (Priest) on Jan 26, 2002 at 12:10 UTC
    Thanks for pointing that out. I had a conditional when I didn't need one because I forgot I could * by 1 and get the same value. DOH!
    The code in the initial post I made has been updated to the working version.