LoBue, Mark wrote:
> ...
> > Use either:
> > 
> >   @{$pumpData{$p_ptId}{$pumpName}{$primary}{solution}} = @solution;
> 
> This worked great, thanks.  Why did I think braces were for hashes and
> parens were for arrays?  I need to go read some more.

perldoc perlref contains this statement:

       2.  Anywhere you'd put an identifier (or chain of
           identifiers) as part of a variable or subroutine name,
           you can replace the identifier with a BLOCK returning
           a reference of the correct type.

So, whenever you want to write:

   @somearray = @solution;

You can write:

   @{ some_expression_that_yields_a_reference_to_an_array } = @solution;

The stuff inside the curlies is an array ref.

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to