Re: Help on a socket problem FIX

2011-02-28 Thread Ted Mittelstaedt
On 2/24/2011 9:29 AM, Uri Guttman wrote: TM == Ted Mittelstaedtt...@mittelstaedt.us writes: TM On 2/24/2011 12:42 AM, Uri Guttman wrote: TM Uri, I am perfectly aware of what constitutes modern programming TM practice. And the fact of the matter is that your very wrong, because

assigning hash key to reference of array question

2011-02-28 Thread steve park
I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). How can I aggregate and assign them to server_1 so that when I print below will show up? server_1 10.1.1.1 10.1.1.2

Re: assigning hash key to reference of array question

2011-02-28 Thread steve park
I am not sure if I am still in mailing list. so cc'ing myself. On Mon, Feb 28, 2011 at 2:47 PM, steve park rich.j...@gmail.com wrote: I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows

Please put the sources of the book Modern Perl under CC-by-sa

2011-02-28 Thread Shlomi Fish
Hi chromatic, again, thanks for all your work on the Modern Perl book (and the blog), which came out very nicely, and I hope it sells well and all. I did not buy a copy (because I already have read it on the computer screen), but I made a small PayPal donation in appreciation for your work.

Re: assigning hash key to reference of array question

2011-02-28 Thread Shlomi Fish
Hi Steve, On Monday 28 Feb 2011 21:47:30 steve park wrote: I have a below program and I am not doing it right. Is this the complete program? Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). OK. Have you localised a

Re: assigning hash key to reference of array question

2011-02-28 Thread Shrivats
On Mon, Feb 28, 2011 at 02:47:30PM -0500, steve park wrote: Hello, A couple of things in addition to what Shlomi had already mentioned. First, you must check your regex. It doesn't really match what you have mentioned in the __DATA__ section. Next, doing join('', ...) is just a verbose way of

Re: assigning hash key to reference of array question

2011-02-28 Thread Jim Gibson
On 2/28/11 Mon Feb 28, 2011 11:47 AM, steve park rich.j...@gmail.com scribbled: I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). How can I aggregate and assign

Re: assigning hash key to reference of array question

2011-02-28 Thread Rob Dixon
On 28/02/2011 19:56, steve park wrote: I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). How can I aggregate and assign them to server_1 so that when I print below

Re: assigning hash key to reference of array question

2011-02-28 Thread charley
On Feb 28, 2:47 pm, rich.j...@gmail.com (steve park) wrote: I have a below program and I am not doing it right. Currently, only last ip pool is going in since I am putting them w/ key to values(so only last one shows up when I print). Hello Steve, The reason you only get the last value for

Re: assigning hash key to reference of array question

2011-02-28 Thread John Delacour
At 22:33 + 28/02/2011, Rob Dixon wrote: The complete program is below. HTH, Rob use strict; use warnings; my %HoA; while ( DATA ) { my ($swit, $server, $ip_range) = split; my ($b_real_ip, $b_ip, $e_ip) = $ip_range =~ /(\d+\.\d+\.\d+\.)(\d+)-\1(\d+)/; for my $byte ($b_ip ..

How to list all Linux machines info with perl ?

2011-02-28 Thread sync
Hi, all : I have many linux machines connected in a network. Now I want ot create a perl script which will list all the machines info in a network. Like the following : - Host: xxx OS: xxx Kernel :xxx CPU Info:xxx I googled the Internet and

Re: How to list all Linux machines info with perl ?

2011-02-28 Thread terry peng
Try again with Net::SNMP. 2011/3/1 sync jian...@gmail.com:  Hi, all : I have many linux machines connected in a network. Now I want ot create a perl script which will list all the machines info  in a network. Like the following : - Host:  xxx OS:  xxx Kernel