in reply to Object passing within a package
You shouldn't need to pass $FooObj as a reference to barsub() (it should already be a reference).
Within barsub(), try doing this:
warn ref $FooObj;
(Or print if STDERR isn't convenient) and make sure Some::Module->new() is returning a blessed reference.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Object passing within a package
by naChoZ (Curate) on Jan 17, 2005 at 15:12 UTC |