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
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
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:
>
>
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
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