On Monday 31 May 2004 20:08, Patrick LeBoutillier wrote:
> 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

No because the contents have to be in a PBS::Runs::[A-Za-z_]+[0-9]+. The 
whole idea is to isolate what happends in the Pbsfile in a package. The 
same Pbsfile can be evaluated multiple times (and that happends rather 
often) but in diffrent packages.

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

Can you tell me why the Inlined code can't be evaluated in the 
PBS::Runs::xxxx package? Where is it evaluated right now?


> use Inline Java => <<'END_OF_JAVA_CODE',
>
...
>       }
> 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.

Cheers, Nadim

Reply via email to