nadim wrote:

<>
my $alu = (__PACKAGE__ . "::Pod_alu")->new ;


Couldn't you just sandwich the contents of ./Pbsfile.pl between

package main ;
...
package PBS::Runs::PBS_1

?

In any event, what we would need is a PACKAGE option to force the
code to be evaluated in a specific package:

use Inline Java => <<'END_OF_JAVA_CODE',

     class Pod_alu {
        public Pod_alu(){
        }

        public int add(int i, int j){
           return i + j ;
        }

        public int subtract(int i, int j){
           return i - j ;
        }
     }
END_OF_JAVA_CODE
        DEBUG => 4,
        PACKAGE => 'main'
) ;


I could do this directly in Inline::Java, but I think it really belongs directly in Inline.

Patrick

--
=====================
Patrick LeBoutillier
Laval, Quebec, Canada



Reply via email to