Alright, so I have been reading the perl docs stuff online about references for most of the day.
Most of it is for much easier stuff than Marshal had written in his example. On lines where Marshal uses references to a hash of hashes of arrays (I think???), could someone explain them to me I am not getting it?
For Example:
push @{$recordState{$record_id}{$OwnerOrWaiting}}, $_;
if ( @{$recordState{$recNum}{WAITING}} >= 1)
foreach my $line ( @{$recordState{$recNum}{WAITING}} )
I know that, lets say:
$myArray = \@array; is the same as @{$myArray}, which is referring to the array "@array"
-OR-
$myHash = \%hash is the same as %{$myHash}, which refers to the hash "%hash", I think????
Also, that square brackets after a reference is referring to an element in that array. Like this,
%{$myArray}[3] refers to the 4th element in the array it refers to.
And for a hash reference, keys %myHash is the same as, keys %{$myHash}.
Or what would be even more helpful, if you or anyone has some time, could you take Marshal's code and document it out to where a newbie could relate (i.e. comments before any of the more difficult lines)?
If this is too much trouble, I understand, it's alot of work. I mean I could just take the code and probably use it as is, but I really want to learn this stuff.
Extremely Thankful,
Matt