On Wed, 3 Oct 2001, Bill Jones wrote: > References: > > I am looking for a basic explaination and example: > > $animal = "Dog"; > $sound = \$animal; > $bark = $$sound; > > $bark is now Dog.
\$animal --> create a reference to $animal, which contains 'Dog' $sound --> assigned the reference to the variable $animal, which contains 'Dog'. $$sound --> dereferences the reference to get the actual data stored, which is 'Dog' $bark --> assigned to the value referenced by $sound when $sound is dereferenced ($$sound), which is 'Dog'. Dig out your handy perldoc tool and read perlref and perlreftut. -- Brett http://www.chapelperilous.net/ ------------------------------------------------------------------------ Zeus gave Leda the bird. -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]