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: }
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
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