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

    Thanx for the tip. That got me going in the right direction. It shed some light on yet another thing that I was doing wrong... doh!

    Thanx!

    --
    "This alcoholism thing, I think it's just clever propaganda produced by people who want you to buy more bottled water." -- pedestrianwolf