Hello

I defined on sub (say 'foo'), and I have defined 2 alias that point to foo
(say 'boo' and 'zoo').  When I call the either function boo or zoo, I really
enter foo.  Is there any way to find out which sub was really called either
'boo' or 'zoo'?  I tried using caller, but caller returns foo.

sub foo {
    print "here " . (caller[0])[3] . "\n";
}

*{boo} = \&foo;
*{zoo} = \&foo;

boo();
zoo();


here main::foo
here main::foo


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to