in reply to calling subs using references.

Since the dereferencing chain is ambiguous, you have to resolve it yourself:
my $word = $rf->{test1}; $tes->$word();

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}

Replies are listed 'Best First'.
Re^2: calling subs using references.
by blazar (Canon) on May 22, 2007 at 12:05 UTC

    Since the dereferencing chain is ambiguous, you have to resolve it yourself:

    my $word = $rf->{test1}; $tes->$word();

    Well, I asked something very similar some time ago. A particularly interesting reply deals both with symbolic and real references: AIUI

    $tes->${\$rf->{test1}}();

    should work. I haven't tested it though, so caveat. Even if it works, it's certainly clumsy and not very friendly to people seeing it.