On Fri, 05 May 2000 11:58:45 -0400, "Ian D. Stewart" <[EMAIL PROTECTED]>
wrote:

>if I add a 'use Java::ClassFile qw(:visibility)' to a regular script, I
>am able to access accPublic, accProtected and accPrivate without any
>problems.
>
>However, trying the same within another package fails.  If I just use
>'accPublic', perl treats it as a bare word.  If I force interpretation
>as a subroutine, by prepending an '&' at the beginning, I get an error
>message 'Undefined subroutine &Java::Class::accPublic called at ...'

This should work within a package just the same as within a "regular
script" (which is in package main::).  Are you sure you have the "use"
statement *after* the "package" statement?

You may need to show a little more of your package code to let us spot
what the problem might be.

-Jan


---
You are currently subscribed to perl-win32-users as: [archive@jab.org]
To unsubscribe, forward this message to
         [EMAIL PROTECTED]
For non-automated Mailing List support, send email to  
         [EMAIL PROTECTED]

Reply via email to