Re: eval function

2003-11-01 Thread Rob Dixon
"Hmmm..." <[EMAIL PROTECTED]> wrote: > > In "Programming Perl", there is an example of eval in chapter 3 that I do > not understand. It is on page 161. It reads: > > Here's a statement that assigns an element to a hash chosen at run-time: > > eval "\$$arrayname{\$key} = 1"; > > I know the \ c

eval function

2003-11-01 Thread Hmmm...
In "Programming Perl", there is an example of eval in chapter 3 that I do not understand. It is on page 161. It reads: Here's a statement that assigns an element to a hash chosen at run-time: eval "\$$arrayname{\$key} = 1"; I know the \ creates a reference, and the $ is dereferencing $arra