On Sun, 30 Nov 2003 21:44:50 +0100
"Bronislav Klucka" <[EMAIL PROTECTED]> wrote:

> The temperature is $$temp
> 
Unfortunately, that is not working for me. I have tried changing it in
the text file, but that just outputs $$temp instead of the value of
$temp. What I have is the array words, for which the relevant entry is
words[3] being equal to "$temp". What I need to be able to do is to
print $words[3]; in such a way that it outputs the value of $temp and
not the value of $words[3]. 

I also tried print $$words[3] but that outputs nothing. I tried print
$($words[3]); but that gives a parse error. And print ${$words[3]}
prints out nothing.

Thanks for the help though.

-- 
Ian Truelsen
Email: [EMAIL PROTECTED]
AIM: ihtruelsen
Homepage: http://www.ihtruelsen.dyndns.org
Signature key (742B740D) available at pgp.mit.edu

Attachment: pgp00000.pgp
Description: PGP signature

Reply via email to