Oh yeah, I never noticed the PACKAGE directive in the Inline::Java
documentation. It's pretty cool. Thanks.

Vishal

Quoting Patrick LeBoutillier <[EMAIL PROTECTED]>:

> Hi,
> 
> By default Inline::Java imports the symbols in the caller package. So
> if you say:
> 
>   package mypack;
>   use Inline Java => 'STUDY', STUDY =>
>   ['com.sonicsw.mq.mgmtapi.config.MQMgmtBeanFactory'];
> 
> then you must then do:
> 
>   my $objectRef = new
> mypack::com::sonicsw::mq::mgmtapi::config::MQMgmtBeanFactory();
> 
> You can also use the PACKAGE config directive to import the symbols in
> the package
> of your choice.
> 
> 
> Patrick
> 
> 
> On 12/13/05, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
> wrote:
> > Hi all,
> >
> > What should I do to use Inline Java, if all the use statements pertaining
> to it
> > are in a different package. For example, if I want to create an object of
> class
> > com.sonicsw.mq.mgmtapi.config.MQMgmtBeanFactory in a perl script, then I
> will
> > have to say something like:
> >
> > my $objectRef = new
> com::sonicsw::mq::mgmtapi::config::MQMgmtBeanFactory();
> >
> > But, before that, I have to say:
> >
> > use Inline Java => 'STUDY', STUDY =>
> > ['com.sonicsw.mq.mgmtapi.config.MQMgmtBeanFactory'];
> >
> > However, how would the first statement (my $objectRef = ......) change if
> the
> > use statement mentioned above was in a different package.
> >
> > Thanks.
> >
> > Vishal
> >
> >
> >
> > ----------------------------------------
> > This mail sent through www.mywaterloo.ca
> >
> 
> 
> --
> =====================
> Patrick LeBoutillier
> Laval, Québec, Canada
> 




----------------------------------------
This mail sent through www.mywaterloo.ca

Reply via email to