Re: [OT] Reference to a method using a scaler?

2001-08-19 Thread Andrew Ho
Hello, GS>I have a Perl scalar ($mystr) that holds a string. I want to use the GS>scalar to form a hash reference to a method after the Perl code is GS>compiled. I'm not sure exactly what you're trying to do with this, but here's two things that can help you. Perl allows you to delay resolution

[OT] Reference to a method using a scaler?

2001-08-19 Thread George Sanderson
I have a Perl scalar ($mystr) that holds a string. I want to use the scalar to form a hash reference to a method after the Perl code is compiled. For example, when I know the method name before compile time, I can say: use strict; %Hashref=( Entry1=>{meth1=>\&method1, do=>'something'},); and t