On Aug 23, 3:42 am, [EMAIL PROTECTED] (Paul Lalli) wrote:
> On Aug 23, 2:00 am, [EMAIL PROTECTED] (Justin The Cynical) wrote:

*snip*

> > Can't use string ("prod01") as an ARRAY ref while "strict refs" in use
>
> perldoc -q "variable name"

Ah, OK, thanks.  I've got a bit of reading to do.  :-)

> > Am I missing something really basic that is covered in the Llama (3rd
> > edition),
>
> No, because it's not basic.  You should be using a multi-dimensional
> structure, as Lists User recommended.  Rather than storing the name of
> an array, store the name of a key to your hash of arrays, and let the
> value be a reference to an anonymous array.

Oh good, I'm not missing something obvious then.

I have redone the code and posted it for comprehension purposes.  And
after testing the script, it does seem to run a bit quicker than the
original using arrays alone.

*snip*

> See also:
> perldoc perlreftut
> perldoc perllol
> perldoc perldsc
>
> Hope that helps,
> Paul Lalli

It does, thank you again Paul.


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to