IPC::Shareable issue

2011-01-09 Thread crash82
Hello, I'm trying to lock and unlock a variable in shared memory my $cleanHandler = tie $cleanup_running, 'IPC::Shareable', 'data', { 'destroy' => 1, 'create' => 1 }; $cleanHandler->shlock(); $cleanup_running++; $cleanHandler->shunlock(); Keep getting this error

calculate average

2011-01-09 Thread S.F.
Hi, I have a data file with n columns and r row. The first 3 columns and the first 5 rows are: 2 3 1 1 6 X 4 0 X X 8 X 5 X 5 The "X" means missing. How could I write a script to calculate the average by column and replace "X" with the average? The output should be like: 2 31 1 6

Re: advangtes of Perl on various languages

2011-01-09 Thread Raymond Wan
Hi Brandon, On Sat, Jan 8, 2011 at 01:53, Brandon McCaig wrote: > On Thu, Jan 6, 2011 at 10:08 AM, Raymond Wan wrote: > I never said it was. ;) C still has very many important roles and I > wouldn't have it any other way. xD There were a lot of other people in > college that were terrified of C