@{$_} 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.
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 @
> 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
>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