Re: Help with array of arrays!

2004-10-13 Thread David Greenberg
@{$_} dereferences the array reference created with []. For instance, my $ref = [1,2,3]; is the same as my @arr = (1,2,3); my $ref = [EMAIL PROTECTED]; To access the array (1,2,3) using $ref, you need to say @{$ref} or, to access an individual element of it, you can say $ref->[0], $ref->[1], etc.

Re: Help with array of arrays!

2004-10-13 Thread David Greenberg
my @array = map { ["$_:", 1, 2, 3] } (0..3); foreach (@array) { print join (', ', @{$_}) . "\n"; } HTH, David On Wed, 13 Oct 2004 14:44:06 +0100, Beckett Richard-qswi266 <[EMAIL PROTECTED]> wrote: > Guys, > This script: > > use strict; > use warnings; > my @array; > for (0..3) { > push @

Re: passing hash to a function

2004-09-07 Thread David Greenberg
> Is it possible to pass the dictionary directly, e.g. > > some_function (%some_hash); > > Or do I need to pass the function a reference to the hash. Please jog my > memory. It is possible: sub some_function { my %args = @_; ... } some_function (%some_hash); I think this will have an

Re: Win32 Permissions

2004-08-13 Thread David Greenberg
>What's the best current way to manage Win32 permissions on shares and files? Using Linux :-) - Original Message - From: Paul Sobey <[EMAIL PROTECTED]> Date: Fri, 13 Aug 2004 17:56:04 +0100 Subject: Win32 Permissions To: [EMAIL PROTECTED] What's the best current way to manage Win32 perm