Howdy folks,
I'm struggling with Exporter, and am hoping someone can shed some
light...
I have the a package that starts like so:
package Java::ClassFile;
require Exporter;
@ISA = qw(Exporter);
@EXPORT_OK = qw(accPublic accProtected accPrivate accStatic accFinal
accSynchronized accVolatile accTransient accNative
accAbstract);
%EXPORT_TAGS = (visibility => [qw(accPublic accProtected accPrivate)],
scope => [qw(accStatic accFinal accAbstract)],
method_scope => [qw(accSynchronized accVolatile
accTransient accNative)]);
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 ...'
Is there some way to force importing from one package to another, or am
I pretty much SOL?
Thanx,
Ian
--
99 little bugs in the code, 99 bugs in the code.
Fix one bug, compile again, 100 little bugs in the code.
100 little bugs in the code, 100 bugs in the code.
Fix one bug, compile again, 101 little bugs in the code...
---
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]