Hi, Sean && List
>$Hash{"$User"}{"$Page"}{"$NumTimesVisited"} = $ANumber;
> Is this possible?
Sure, this will work.
I would decrease the hash depth a bit:
$Hash{$User}{$Page} = $NumTimesVisited;
> If so, how would I traverse this, as I will not know
> before hand the values in the hash; I will need to use something like sort.
> Thank you.
As you can see, you dont have to quote the hash keys, although this is rather
a religious issue ;o) I prefer the nonquoted version, since imho its more
readable.
Getting the elements is no too hard:
for (sort keys %Hash) {
@pages = keys %{ $Hash{$_} }
do sumfink with @pages .....
}
HTH,
Jan
--
cat /dev/world | perl -e "while (<>) {(/(^.*? \?) 42 \!/) && (print $1)}"
errors->(c)
-
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]