On Wed, Sep 01, 2004 at 08:11:22AM -0700, Palit, Nilanjan wrote:
I want to print the values of a bunch of variables so I thought I'll
take a shortcut and do this:
foreach (qw(var1 var2 var3 var4))
{
print $_ - ${$_}\n;
}
I had thought that interpolating the variable name (${$_})
to the boston-pm server), so I had been unsure of the address.
Will limit it to a single address next time.
-Original Message-
From: Ronald J Kimball [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 01, 2004 11:28 AM
To: Palit, Nilanjan
Cc: [EMAIL PROTECTED]
Subject: Re: [Boston.pm] RE
PN == Palit, Nilanjan [EMAIL PROTECTED] writes:
PN Thanks for the responses. I did use my to declare the variables -
PN removing that allowed me to reference the variables correctly.
and no one warned you about the evils of doing that. read this:
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
AS == Aaron Sherman [EMAIL PROTECTED] writes:
AS On Wed, 2004-09-01 at 14:35, Uri Guttman wrote:
the symbol table is just a special hash tree with
global side effects. so why not just use a regular hash as it is safer
(no global side issues), more flexible (you can pass it around,