Michael Peters wrote:

I hope I'm not stating the obvious here, but anything you pass to a "use" statement in addition to the module name get's passed into that module's import() sub. Exporter just makes this easy by giving you some vars to play with and it's own import() sub.

Ditch Exporter and write your own import() sub to take the list that you want and pass it to Inline::Java's import() sub. Something like this:

package BOB;
use Inline::Java;

sub import {
  my $class = shift;
  Inline::Java->import(@_);
}

It's getting passed into the module now, I've verified that:

sub import {
 my $class = shift;
 print @_, "\n";
}


Problem is... using Inline::Java->import(@_); doesn't seem to work. It's not exporting the Java class for this module or the caller to see. I suspect it's some of magic of Inline Java, having to get at it with the 'STUDY' directives... Maybe not, from here everyone looks like an expert.

When trying to access a Java class I get:
"JavaClass1" is not exported by the Inline::Java module

Thanks,
Scott

Reply via email to