Re: How do I pass a hash to a sub, and get to it in the sub?

2002-03-03 Thread John Crockett
Thank you SO much...I love it that guys who know what they're doing are willing to help us newbies! JC "Chas Owens" <[EMAIL PROTECTED]> wrote in message news:[EMAIL PROTECTED].; > On Sat, 2002-03-02 at 11:16, John Crockett wrote: > > I'm sure this is s

Re: How do I pass a hash to a sub, and get to it in the sub?

2002-03-03 Thread John Crockett
you would can use this notation: > if (input_parm->{CUSTID} == 23489) { ># when equal to do somethin > }else { ># when not equal do something > } > > When used like this, you can update the hash. Can be used for arrays in the same way. > > Wags ;) > -Orig

How do I pass a hash to a sub, and get to it in the sub?

2002-03-02 Thread John Crockett
;; $input_parm{CUSTID} = "23489"; my_subroutine(%input_parm); more irrelevant code; . . . } sub my_subroutine(%) { This is where I have trouble. I can't figure out the notation for reading the hash! } Thanks for your help. John Crockett [EMAIL PROTECTED] (T