On Tue, Nov 8, 2011 at 7:47 PM, Paul Rousseau
<paulrousseau...@hotmail.com> wrote:
> I am getting closer, Gabor.

I am glad to hear that :)

>
> I had the wrong index. These two lines
>
> push @{$project{$projectno}}, \%days;
> print Dumper %{$project{$projectno}[3]};

I think it is better to always give a reference as a parameter to Dumper
(put the back-slash in front of the %)

> Now to get at the description within the %days hash. This next line prints a
> count of the array pointed at by the '3' key.
>
> print "test 1 " . @{${$project{$projectno}[3]}{"3"}};
>
> prints "test 1 2"
>

It looks too complex to me. I wonder if you could change the
strategy and work with smaller structure. That will be easier to comprehend.
Leaving spaces inside the brackets can also help.
It also seems you have an extra, unnecessary pair of curly braces:

This might be slightly more readable:

@{ $project{ $projectno }[3]{3} }

regards
   Gabor
   Perl Tutorial
   http://szabgab.com/perl_tutorial.html
_______________________________________________
Perl-Win32-Users mailing list
Perl-Win32-Users@listserv.ActiveState.com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs

Reply via email to