Re: snmpwalk with perl

2010-04-09 Thread 彭勇华
SNMP-Util is out of date from what I saw. For example, I want to use SNMP V3, but can't find SNMP::Util supports that. > Hi, > > Is there any perl module can implement snmpwalk function? > I found SNMP::Util on cpan, but it seems too out of date, and can't > specify > the snmp version for it. >

Re: snmpwalk with perl

2010-04-09 Thread Sisyphus
- Original Message - From: "彭勇华" To: Sent: Saturday, April 10, 2010 12:35 PM Subject: snmpwalk with perl Hi, Is there any perl module can implement snmpwalk function? I found SNMP::Util on cpan, but it seems too out of date, and can't specify the snmp version for it. I've no

snmpwalk with perl

2010-04-09 Thread 彭勇华
Hi, Is there any perl module can implement snmpwalk function? I found SNMP::Util on cpan, but it seems too out of date, and can't specify the snmp version for it. Thanks. -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://

Re: Looping in Test::Harness

2010-04-09 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> From: Uri Guttman >> >> you can even use perl itself. just write a perl data structure and >> call do on it. it can be an anon array or hash which is the >> returned value. no need to learn yaml or load another module. you >> can also slurp/ev

RE: Looping in Test::Harness

2010-04-09 Thread Bob McConnell
From: Uri Guttman > "BM" == Bob McConnell writes: > BM> From: Philip Potter > >> On 6 April 2010 16:52, Bob McConnell wrote: > >>> I have a test harness set up with a series of Selenium test scripts. > >>> Each script tests a specific scenario on my web site. But I have some > >>> scen

Re: Looping in Test::Harness

2010-04-09 Thread Uri Guttman
> "BM" == Bob McConnell writes: BM> From: Philip Potter >> On 6 April 2010 16:52, Bob McConnell wrote: >>> I have a test harness set up with a series of Selenium test scripts. >>> Each script tests a specific scenario on my web site. But I have some >>> scenarios that I want to tes

Re: run Unix commands from script!

2010-04-09 Thread John W. Krahn
Niko zuna wrote: Hi! Hello, I made this short script in order to see if there is posible to run "modified" unix commands from a Perl script. #!/usr/bin/perl use strict; use warnings; my $load = `uptime | awk '{print $8 $9 $10 $11 $12}'`; my ( $load ) = `uptime` =~ /(load average: .+)/;

Re: Looping in Test::Harness

2010-04-09 Thread Philip Potter
On 9 April 2010 18:04, Bob McConnell wrote: > After a great deal of reading and speculation, it looks like YAML is the > way to go. I will have to move the loop inside each test script, and > iterate thorough the records read. The biggest problem is that the plan > is no longer fixed, so I do lose

RE: Looping in Test::Harness

2010-04-09 Thread Bob McConnell
From: Philip Potter > On 6 April 2010 16:52, Bob McConnell wrote: >> I have a test harness set up with a series of Selenium test scripts. >> Each script tests a specific scenario on my web site. But I have some >> scenarios that I want to test multiple times with different data entered >> each ti

Re: run Unix commands from script!

2010-04-09 Thread Shlomi Fish
On Friday 09 Apr 2010 18:31:31 Niko zuna wrote: > Hi! > > I made this short script in order to see if there is posible to run > "modified" unix commands from a Perl script. > > #!/usr/bin/perl > > > > use > strict; > > use > warnings; > > > > my $load = `uptime | awk '{print $8 $9 $10 $11

Re: Modules download from CPAN

2010-04-09 Thread Shawn H Corey
Open Source wrote: Shawn, actually I would setup something like mirror site (locally) so all the modules. If you want to mirror CPAN, why didn't you say so? BTW, that is hardly a beginners question. You should take your advance questions to PerlMonks http://www.perlmonks.org/ -- Just m

Re: run Unix commands from script!

2010-04-09 Thread Shawn H Corey
Niko zuna wrote: Hi! I made this short script in order to see if there is posible to run "modified" unix commands from a Perl script. #!/usr/bin/perl use strict; use warnings; my $load = `uptime | awk '{print $8 $9 $10 $11 $12}'`; print "$load\n"; when I am trying to run this skript,

Re: run Unix commands from script!

2010-04-09 Thread Brandon McCaig
On Fri, Apr 9, 2010 at 11:31 AM, Niko zuna wrote: > Use of uninitialized value $8 in concatenation (.) or string at ./test.plline > 6. > Use of uninitialized value $9 in concatenation (.) or string at ./test.plline > 6. > Use of uninitialized value $10 in concatenation (.) or string at > ./test.

Re: Modules download from CPAN

2010-04-09 Thread Brandon McCaig
On Fri, Apr 9, 2010 at 11:04 AM, Open Source wrote: > Shawn, actually I would setup something like mirror site (locally) so all the > modules. http://www.cpan.org/misc/cpan-faq.html#How_mirror_CPAN ??? -- Brandon McCaig V zrna gur orfg jvgu jung V fnl. Vg qbrfa'g nyjnlf fbhaq gung jnl. Castop

run Unix commands from script!

2010-04-09 Thread Niko zuna
Hi! I made this short script in order to see if there is posible to run "modified" unix commands from a Perl script. #!/usr/bin/perl use strict; use warnings; my $load = `uptime | awk '{print $8 $9 $10 $11 $12}'`; print "$load\n"; when I am trying to run this skript, I get the whole upt

run Unix commands from script!

2010-04-09 Thread Niko zuna
Hi! I made this short script in order to see if there is posible to run "modified" unix commands from a Perl script. #!/usr/bin/perl use strict; use warnings; my $load = `uptime | awk '{print $8 $9 $10 $11 $12}'`; print "$load\n"; when I am trying to run this skript, I get the whole upt

Re: Modules download from CPAN

2010-04-09 Thread Open Source
Shawn, actually I would setup something like mirror site (locally) so all the modules. > - Original Message - > From: Shawn H Corey > Sent: 04/09/10 08:04 PM > To: Open Source > Subject: Re: Modules download from CPAN > Open Source wrote: > I would like to download all the modules (atlea

Re: Modules download from CPAN

2010-04-09 Thread Jeremiah Foster
On Apr 9, 2010, at 4:19 PM, Open Source wrote: > I would like to download all the modules (atleast important ones) from cpan > website and keep them in my local disk rather going into www everytime. Can > someone tell how to download all of them? Cheers Sorry, my previous email was a little to

Re: Getting a subroutine reference from an object instance

2010-04-09 Thread Eric Veith1
Peter, Peter Scott wrote on 04/09/2010 03:45:54 AM: > Yikes, I do not like that design. Forking should be defined in its own > independent location, not as some part of a global funnel that all method > calls pass through. AFAIK Method attributes are per-package. I am already using Moose to

Re: Modules download from CPAN

2010-04-09 Thread Shawn H Corey
Open Source wrote: I would like to download all the modules (atleast important ones) from cpan website and keep them in my local disk rather going into www everytime. Can someone tell how to download all of them? Cheers Sorry, you have to decide which ones are the important ones first. --

Modules download from CPAN

2010-04-09 Thread Open Source
I would like to download all the modules (atleast important ones) from cpan website and keep them in my local disk rather going into www everytime. Can someone tell how to download all of them? Cheers -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beg

Re: Decimal representation of binary file (unpack)

2010-04-09 Thread Dr.Ruud
Raymond Wan wrote: Alan Haggai Alavi wrote: On 8 April 2010 11:00, Raymond Wan wrote: for (my $i = 0; $i < length ($buffer); $i += 4) { print unpack ('I', $buffer[$i].$buffer[$i + 1].$buffer[$i + 2].$buffer[$i + 3]), "\n"; } Wildcards can be used within the template in pack. There is no

Re: Perl: Subroutines and use of the "GD::Graph::bars;" Module

2010-04-09 Thread alekto
Hi again, thank you for trying to help! I have been looking at the script once again, I could not really get your suggestion to work, but I have been doing some new changes thought. With this script I am pasting her, I manage to print the graph to a .png file, but the histogram does not show. Th