[Chicago-talk] Dynamic method call

JT Smith jt at plainblack.com
Thu Nov 6 09:36:52 CST 2003


I do this all the time...and you've got it absolutely right.

On Thu, 6 Nov 2003 09:21:16 -0600
  "Jay Strauss" <me at heyjay.com> wrote:
>How do I call a method, where a variable contains the method name?
>
>my $method = "do_something";
>$self->$method;
>
>Thanks
>Jay
>_______________________________________________
>Chicago-talk mailing list
>Chicago-talk at mail.pm.org
>http://mail.pm.org/mailman/listinfo/chicago-talk

JT ~ Plain Black

Create like a god, command like a king, work like a slave. 



More information about the Chicago-talk mailing list