Hi,
I'm trying to create some java code at runtime, and then use it within
my Inline::Java. I have a package that "use"s Inline::Java, and
within that package, there is a method that creates a string
containing Java source.
I can't find an example of doing that in the archives or the
Inline::Java perldoc (I do see the bit about studying classes at
runtime)
For example I have:
package My::Package;
use Inline (
Java => __PACKAGE__->_read_java_method_declarations(),
JNI => 1,
AUTOSTUDY => 1,
STUDY => [...],
);
sub _read_java_method_declarations {
....
return $java_source;
}
1;
I thought maybe I should be "require"ing Inline, but couldn't get the
syntax correct. Would someone point me in the right direction?
Thanks
Jay