in reply to A caller() by any other name
>perl -MCarp -e"sub g { carp } sub f { shift->g } bless({})->f" at -e line 1 main::g('main=HASH(0x235f7c)') called at -e line 1 main::f('main=HASH(0x235f7c)') called at -e line 1
If you don't want to pass the pointer explicitly, you'll need to provide a framework that does it for you.
Perl doesn't do OO. Perl has features that allow people to build OO systems on top of Perl.
- dragonchild, promoting Moose
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: A caller() by any other name
by chromatic (Archbishop) on Dec 03, 2008 at 11:49 UTC |