> Morning, Dan
Morning! > > At 11:50 AM 1/23/2003 -0600, you wrote: > > > i.e. $categories('1094') = 100049-0220-100004 > > > > do you mean $catagories{'1094'} ? > > Yup, I did. Never type anything in from memory :-) I can't anyway because my memory doesn't work. > > > > > value is there. (I can > > > >if(exists $catagories{$ccid}) { .... } Also if it would help you could do : if(!exists $catagories{$ccid}) { .... } Which is saying if the key $ccid does *not* exist in the hash catagories then { ...} Were as the first one was saying If the key does exist in the hash ctatgories the { .... } > > Coolness. So then, if I can talk out loud a second, > to get the value out, I should be able to just say something > like $myID = $categories{$ccid}, right? It was returning Right, or instead of : $myID = $categories{$ccid}; print $myID; You could just do : print $categories{$ccid}; Or otherwse just use $categories{$ccid} where you would want to use $myID And save a step or two. Isn't perl fun?! > NULL, but I may have swapped out the key with the value when > I was initially setting it up. > > > Have a most excellent day > lara > --------------------- > Lara J. Fabans > Lodestone Software, Inc > [EMAIL PROTECTED] > > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]