Re: Hash Help Needed !

2004-03-25 Thread R. Joseph Newton
"Normandin, Jason" wrote: > Hi > > I am scoping the %response_values hash at the top. I dont understand why it > would need to be temporary as I am referancing that hash outside of the loop > when I iterate through. > > I changed the syntax to referance the oids rather then the hash name and I >

Re: Hash Help Needed !

2004-03-25 Thread R. Joseph Newton
[EMAIL PROTECTED] wrote: > foreach my $response ($record->{keys %response_values} ) What is this? It looks like you are trying to use a list as a hash key. I don't think that is going to work. A hash element should take a scalar as its key, not a list: Greetings! C:\Documen

RE: Hash Help Needed !

2004-03-25 Thread Guay Jean-Sébastien
Hello Jason, > $VAR1 = { > 'oids' => '%response_values', > 'time' => '03/25/2004 03:16:39' > }; ... > If so, what is wrong with my assignment statement ? > > push @{$response_hash{$request_id}},{time => "$time",oids => > "%response_values"}; That is exactly what Charl

RE: Hash Help Needed !

2004-03-25 Thread Normandin, Jason
How can I get the oids=> to populate the oids object with the vals ? Thanks Jason -Original Message- From: Charles K. Clarkson [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:35 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Cc: Normandin, Jason Subject: RE: Hash H

RE: Hash Help Needed !

2004-03-25 Thread Normandin, Jason
is point :( = Jason -Original Message- From: Wiggins d Anconia [mailto:[EMAIL PROTECTED] Sent: Thursday, March 25, 2004 10:45 AM To: [EMAIL PROTECTED]; [EMAIL PROTECTED]; Normandin, Jason Subject: RE: Hash Help Needed ! > [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [snip] &

RE: Hash Help Needed !

2004-03-25 Thread Normandin, Jason
IL PROTECTED] Cc: Normandin, Jason Subject: RE: Hash Help Needed ! [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : : I have run into a situation that I am unclear on. : : I am making the following assignment during a loop: : : push @{$response_hash{$request_id}},{time => "$time"

RE: Hash Help Needed !

2004-03-25 Thread Wiggins d Anconia
Please bottom post > Hi > > I am scoping the %response_values hash at the top. I dont understand why it > would need to be temporary as I am referancing that hash outside of the loop > when I iterate through. > It doesn't have to be temporary, but you overstep the help that 'strict' would

Re: RE: Hash Help Needed !

2004-03-25 Thread jason_normandin
Got it. I missed your note on the whitespace. Thanks everyone !! > > From: "Charles K. Clarkson" <[EMAIL PROTECTED]> > Date: 2004/03/25 Thu PM 03:35:08 GMT > To: <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> > CC: <[EMAIL PROTECTED]> > Subject: R

RE: Hash Help Needed !

2004-03-25 Thread Wiggins d Anconia
> [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: [snip] > : > : print "Time : $record->{time}\n"; > : print "IP : $record->{ip_addr}\n"; > : foreach my $response ($record->{keys %response_values} ) In addition to what Charles already stated, once you have c

RE: Hash Help Needed !

2004-03-25 Thread Charles K. Clarkson
[EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: : : I have run into a situation that I am unclear on. : : I am making the following assignment during a loop: : : push @{$response_hash{$request_id}},{time => "$time",ip_addr : => "$ip_address",oids => "%response_values"}; I didn't test your cod

Hash Help Needed !

2004-03-25 Thread jason_normandin
Hey List. I have run into a situation that I am unclear on. I am making the following assignment during a loop: push @{$response_hash{$request_id}},{time => "$time",ip_addr => "$ip_address",oids => "%response_values"}; Where: response_values is a simple hash containing key,value pairs and $tim