On Sep 30, 11:30 am, [EMAIL PROTECTED] (Mathew Snyder) wrote:
> I'm trying to create an array of hashes with hash names that are simply
> "user1",
> "user2", "user3", etc.
Stop.
Go read: perldoc -q "variable name"
Then come back and ask your question.
Paul Lalli
--
To unsubscribe, e-mail:
From: Mathew Snyder <[EMAIL PROTECTED]>
> I'm trying to create an array of hashes with hash names that are simply
> "user1",
> "user2", "user3", etc. How do I use this method when adding one of the hashes
> to the array?
>
> my $user = "user" . $i;
>
> (build hash...)
>
> push @userData, hash
2007/9/30, Mathew Snyder <[EMAIL PROTECTED]>:
> I'm trying to create an array of hashes with hash names that are simply
> "user1",
> "user2", "user3", etc. How do I use this method when adding one of the hashes
> to the array?
>
> my $user = "user" . $i;
>
> (build hash...)
>
> push @userData, ha
I'm trying to create an array of hashes with hash names that are simply "user1",
"user2", "user3", etc. How do I use this method when adding one of the hashes
to the array?
my $user = "user" . $i;
(build hash...)
push @userData, hash
Would it be %$user? %{$user}? Some other variation on that