RE: Foreach with array of hashes

2008-07-19 Thread Bobby Jafari
Thanks heaps. Problem solved. code changed to Line 10: @snmpS = (\%snmpSession1, \%snmpSession2); Line 11: foreach $snmpS (@snmpSessions) Line 12: { Line 13:ðernetGlobalMode ($snmpS); Line 14: }

Re: Foreach with array of hashes

2008-07-19 Thread Amit Saxena
On Sat, Jul 19, 2008 at 2:45 PM, Bobby Jafari <[EMAIL PROTECTED]> wrote: > Hi all, > > I am getting a syntax error with the following code: > > Line 10: @snmpSessions = (%snmpSession1, %snmpSession2); > Line 11: foreach %snmpSession (@snmpSessions) > Line 12: { > Line 13:# The following is

Foreach with array of hashes

2008-07-19 Thread Bobby Jafari
Hi all, I am getting a syntax error with the following code: Line 10: @snmpSessions = (%snmpSession1, %snmpSession2); Line 11: foreach %snmpSession (@snmpSessions) Line 12: { Line 13:# The following is call to my own subroutine that has been tested and it works (:-) Line 14:ðernet