Hash is being populated in the sub, but when I tried accessing the values after calling &ref(), it appeared as they they weren't there.
I must have done something silly that I cannot reproduce. Once I stepped through the debugging and saw that %hash had the right values, I wrote another foreach() loop to dump the values after calling &ref(), there they were. Now to see if my larger program adheres to the same logic. You're confused?! I thought I was a decent Perl programmer until I forced myself to use strict and -w! Thanks! --Chuck > -----Original Message----- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 16, 2001 11:29 AM > To: 'Tomasi, Chuck'; '[EMAIL PROTECTED]' > Subject: RE: Populating a referenced hash > > > > -----Original Message----- > > From: Tomasi, Chuck [mailto:[EMAIL PROTECTED]] > > Sent: Friday, November 16, 2001 12:16 PM > > To: 'Bob Showalter'; '[EMAIL PROTECTED]' > > Subject: RE: Populating a referenced hash > > > > > > > Your sub looks ok, but of course we can't tell if any of > > > the regexes are actually matching. > > > > The regexes are matching. I put a quick forech() loop to > > print out the keys > > and their values. Everything looks OK at the end of the sub. > > Well I'm confused then. I thought the problem was the hash > wasn't being populated. > > -- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]