I have always used hashes when I needed large numbers of variables
(though frankly, without knowing the technical benefits of doing so,
other than they were 'convenient'). In this specific case I was
debugging a subroutine and needed to inspect a bunch of internal
variable values - so I thought I could save myself some typing by using
the scalar reference, and in the process ended up teaching myself a good
lesson. Thanks!

-Nilanjan


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of David Cantrell
Sent: Wednesday, September 01, 2004 3:29 PM
To: [EMAIL PROTECTED]
Subject: Re: [Boston.pm] RE: Interpolating variables

On Wed, Sep 01, 2004 at 10:32:40AM -0700, Palit, Nilanjan wrote:
> Thanks for the responses. I did use "my" to declare the variables -
> removing that allowed me to reference the variables correctly.

You almost certainly don't want to do what you were trying to do though.
A hash would be the logical choice for this sort of thing.

-- 
David Cantrell | Reality Engineer, Ministry of Information

  All principles of gravity are negated by fear
                                            -- Cartoon Law V
_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

_______________________________________________
Boston-pm mailing list
[EMAIL PROTECTED]
http://mail.pm.org/mailman/listinfo/boston-pm

Reply via email to