Re: 2 dimensions array

2011-12-11 Thread Shawn H Corey
On 11-12-11 06:57 AM, kurtz le pirate wrote: Hello, I want to have a two dim array. I build it like this: my @Cylinders; /.*(<.*>),(<.*>).*/; push @{$Cylinders[0]}, $1; push @{$Cylinders[1]}, $2; Seems to work but a get an array with '2' lines and 'n' columns instead of 'n' lin

2 dimensions array

2011-12-11 Thread kurtz le pirate
Hello, I want to have a two dim array. I build it like this: my @Cylinders; /.*(<.*>),(<.*>).*/; push @{$Cylinders[0]}, $1; push @{$Cylinders[1]}, $2; Seems to work but a get an array with '2' lines and 'n' columns instead of 'n' lines with '2' columns'. display array with 'pri

Re: Better Answer for This Question - Gabor's Chapter4 lecture 6

2011-12-11 Thread Sayth
Sent from my iPhone On 11/12/2011, at 12:04 AM, Shlomi Fish wrote: > Hi, > > On Fri, 09 Dec 2011 20:44:18 + > Rob Dixon wrote: > >> On 09/12/2011 11:35, flebber wrote: >> With this program >> >> @data = ; >> $sum += $_ for @data; >> print $sum / @data; >> > > This program: > >

Re: File health check on *nix system using stat

2011-12-11 Thread frank cui
Thanks John and Peter for the reply. Ok, to make this question more specific, the author of this book is making a program to check if the files can be read off from the disk. And he does so by checking two steps, first is making sure the meta data of this file looks fine, and secondly by reading b

Re: Better Answer for This Question - Gabor's Chapter4 lecture 6

2011-12-11 Thread Rob Dixon
On 10/12/2011 13:04, Shlomi Fish wrote: Hi, On Fri, 09 Dec 2011 20:44:18 + Rob Dixon wrote: On 09/12/2011 11:35, flebber wrote: With this program @data =; $sum += $_ for @data; print $sum / @data; This program: 1. Does not have "use strict;" and "use warnings;". 2. Colle