[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 then

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

2001-08-19 Thread Andrew Ho
Hello, GSI have a Perl scalar ($mystr) that holds a string. I want to use the GSscalar to form a hash reference to a method after the Perl code is GScompiled. 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