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:        &ethernetGlobalMode (\%snmpSession);
Line 15: }

I get the following error:
syntax error at C:\SVN\qa-tests\2084\testcase\TC-Ether-Type-Test.pl line
11, near "foreach %snmpSession"
syntax error at C:\SVN\qa-tests\2084\testcase\TC-Ether-Type-Test.pl line
15, near "}"
Execution of C:\SVN\qa-tests\2084\testcase\TC-Ether-Type-Test.pl aborted
due to compilation errors.

Thanks for your comments and feedback.
Regards,
Bobby

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to