> You're terminology is a little confusing, but I think you have the
> right idea.
For the benefit of the original poster:
The => symbol is usually used to signify a hash and automatically quote
the key to the left of it. I.e.:
my %hash1 = (
foo => 'bar',
bar => 'baz',
baz => 'foo',
);
However a hash is just an even valued list, so %hash1 is the same as
%hash2:
my %hash2 = ('foo', 'bar', 'bar', 'baz', 'baz', 'foo');
However, a lot of times you'll see a hash in a hash reference, i.e.:
my $hashref = { foo => 'bar', bar => 'baz', baz => 'foo', };
So that instead of accessing elements by $hash1{foo} you'd access them
by $hash1->{foo}.
I think I've successfully improved, right?
-Dan
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>