[Chicago-talk] Dynamic method call

Jay Strauss me at heyjay.com
Thu Nov 6 09:50:08 CST 2003


Wasn't working, I must have some other error

Jay
----- Original Message ----- 
From: "JT Smith" <jt at plainblack.com>
To: "Chicago.pm chatter" <chicago-talk at mail.pm.org>
Sent: Thursday, November 06, 2003 9:36 AM
Subject: Re: [Chicago-talk] Dynamic method call


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. 
_______________________________________________
Chicago-talk mailing list
Chicago-talk at mail.pm.org
http://mail.pm.org/mailman/listinfo/chicago-talk





More information about the Chicago-talk mailing list