in reply to Re: Re: Module Data Dump.
in thread Module Data Dump.

Just use:
my $data = $object->$method;

--
Ilya Martynov (http://martynov.org/)

Replies are listed 'Best First'.
Re: Re: Re: Re: Module Data Dump.
by dakedesu (Scribe) on Apr 01, 2002 at 09:33 UTC

    You mean that will actually work? Well, it certainly seems logical :)

    DakeDesu teh Confused Werewolf.
    In perl, only those who are bless'd are treated as objects
    (Webpages under construction)

      Have you tried?

      my $does = bless {}, 'Test'; my $it = 'test'; my $answer = $does->$it('work?'); print $answer, "\n"; package Test; sub test { return 'Sure'; }

      --
      Ilya Martynov (http://martynov.org/)

        I wasn't sure if my version of Perl had depreciated my computer's self destruct button feature :) (BTW: Why does that appear on computers in various Tv shows and cartoons?)

        DakeDesu teh Confused Werewolf.
        In perl, only those who are bless'd are treated as objects
        (Webpages under construction)