E
ed
Hey all. This is probably a simple question, but I've looked around
the faq and other parts of the manual and haven't found an answer yet.
I want to use an object from another package.
Example:
--- START Perl CODE -----
$obj = new Object;
# ... DO STUFF in anotherPackage ......
{ package anotherPackage;
# How do I refer to $obj from here?
# I've tried $main:bj and *main:bj
# but neither seem to work
}
--- END Perl CODE ------
tia,
--ed
the faq and other parts of the manual and haven't found an answer yet.
I want to use an object from another package.
Example:
--- START Perl CODE -----
$obj = new Object;
# ... DO STUFF in anotherPackage ......
{ package anotherPackage;
# How do I refer to $obj from here?
# I've tried $main:bj and *main:bj
# but neither seem to work
}
--- END Perl CODE ------
tia,
--ed