Re: array question

2012-08-19 Thread Chris Charley
""Chris Charley"" wrote in message "Chris Stinemetz" wrote in message news Hello List, I have input data such as far below: I would like to read the data into an array and modify the 2nd index if the 0th and first indices are identical. I would like the updated 2nd index to be an avera

Re: Best module for RPC on same machine?

2012-08-19 Thread Kevin Walzer
On 8/19/12 2:23 PM, Shlomi Fish wrote: my friend recommended https://metacpan.org/release/Object-Remote , but I have no first-hand experience with it (or with any other RPC module). Thank you. Some further googling has returned this page, which seems to work: http://www.debian-administratio

Re: array question

2012-08-19 Thread Chris Charley
"Chris Stinemetz" wrote in message news Hello List, I have input data such as far below: I would like to read the data into an array and modify the 2nd index if the 0th and first indices are identical. I would like the updated 2nd index to be an average of the 2nd index where both occurences o

Re: matching array elements from hash ?

2012-08-19 Thread John W. Krahn
jet speed wrote: Hi All, Hello, Is there a way to find matching array elements from hash. ex: @names = ( abc. def. ghi, jky; ); %stud = ( " abc" =>" 34", "nba" =>"99", "def" =>"24", "ghi"=> "33"); How can i go throught each elements of has %stud and print the matching array value in th

Re: matching array elements from hash ?

2012-08-19 Thread timothy adigun
Hi, Please, Check my comments below. On 8/19/12, jet speed wrote: > Hi All, > > Is there a way to find matching array elements from hash. > > ex: > > @names = ( abc. def. ghi, jky; ); The above should be @names=("abc","def","ghi","jky"); OR @names=qw(abc def ghi jky); OR other variant

matching array elements from hash ?

2012-08-19 Thread jet speed
Hi All, Is there a way to find matching array elements from hash. ex: @names = ( abc. def. ghi, jky; ); %stud = ( " abc" =>" 34", "nba" =>"99", "def" =>"24", "ghi"=> "33"); How can i go throught each elements of has %stud and print the matching array value in this case abc =34 def=24 Thank

Re: Best module for RPC on same machine?

2012-08-19 Thread Shlomi Fish
Hi Kevin, On Sun, 19 Aug 2012 14:11:11 -0400 Kevin Walzer wrote: > I am looking for recommendations for a remote procedure call (RPC) > module for a Perl app. My goal is to use a helper Perl app/script to > send commands to a separate running Perl process on the same machine, > and RPC seems

Best module for RPC on same machine?

2012-08-19 Thread Kevin Walzer
I am looking for recommendations for a remote procedure call (RPC) module for a Perl app. My goal is to use a helper Perl app/script to send commands to a separate running Perl process on the same machine, and RPC seems like the best way to do this. (Ruby has a module in its standard library, d

Re: array question

2012-08-19 Thread Shlomi Fish
Hi Chris, On Sun, 19 Aug 2012 08:49:25 -0500 Chris Stinemetz wrote: > Hello List, > > I have input data such as far below: > > I would like to read the data into an array and modify the 2nd index > if the 0th and first indices are identical. > I would like the updated 2nd index to be an averag

array question

2012-08-19 Thread Chris Stinemetz
Hello List, I have input data such as far below: I would like to read the data into an array and modify the 2nd index if the 0th and first indices are identical. I would like the updated 2nd index to be an average of the 2nd index where both occurences of 0th and 1st indices match. So for exampl