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

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

RE: Accessing TCL api via perl

2006-08-23 Thread Bobby Jafari
> I am using a test gear that uses a TCL api for automation. However, all > my test environment is in perl. Has anybody done any work in perl such > that they can call TCL API commands and capture both return codes and > other outputs. > > Every TCL API instruction that I use, would create a handle

Accessing TCL api via perl

2006-08-22 Thread Bobby Jafari
of some sort (i.e. a value that can be use to destinguish the call in a unique fashion). I have looked at a few TCL modules from CPAN but I am still looking for some more guidance. Any help/reference or sample code would be welcome. Regards, Bobby Jafari QA / Test Engineer Senetas Security Pty

RE: How do I do this on Perl ...

2006-08-22 Thread Bobby Jafari
my @vowels = ("a","b","c","d"); my $letter; foreach $letter (@vowels) { print "$letter\n"; } -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: executing/calling another perl script

2006-04-09 Thread Bobby Jafari
> I need to call/execute another perl file from my backup.pl perl script by giving some argument. > Can anybody please tell me how to do that? my result = system (perl other-script.pl ) or my result = `perl other-script.pl ` #using back ticks` -- To unsubscribe, e-mail: [EMAIL PROTECTED] For add

RE: want to install

2005-11-27 Thread Bobby Jafari
On Mon, 28 Nov 2005, Andreas Schroeder wrote: > Hello? Does someone know, why I can't install the Glib-module on my perl? You need to provide more details, i.e. how did you try to install the package. What's the OS etc. The members of this list are not mind readers and I doubt if there is any per

RE: Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Bobby Jafari
Hi Jeff, The solution was "\xHH\xMM" Thanks for all your suggestions. It got me going. Regards, Bobby -Original Message- From: Jeff 'japhy' Pinyan [mailto:[EMAIL PROTECTED] Sent: Wednesday, 5 October 2005 21:21 To: Bobby Jafari Cc: beginners@perl.org Subject: R

Problems with set-request NET::SNMP - retransmited

2005-10-05 Thread Bobby Jafari
Hello All, I have a rather strange problem. I am doing the following: 1 $result = $session->set_request ( 2 -varbindlist => [ "${secPvcBulkModeOid}.${nextVcatIndex}" , INTEGER, "1", 3 "${secPvcActionTypeOid}.${nextVcatIndex}" , INTEGER, "$actionType", 4

Problems with set-request NET::SNMP

2005-10-05 Thread Bobby Jafari
Hello All, I have a rather strange problem. I am doing the following: 1 $result = $session->set_request ( 2 -varbindlist => [ "${secPvcBulkModeOid}.${nextVcatIndex}" , INTEGER, "1", 3"${secPvcActionTypeOid}.${nextVcatIndex}" , INTEGER, "$actionType", 4

Need help with Perl Book

2005-10-03 Thread Bobby Jafari
Hi All, I am looking for a suitable Perl Book to buy. I use Perl mainly for running test scripts on Telecommunications based products. I use Net::SNMP and Net::Telnet extensively. I also need a book on a good GUI Interface for Perl. Is TK a good option? What are other GUI support available for P