For example...
$divesub = \&somesub; $raisesub = \&somesub; sub somesub { if (called.by eq "divesub") { &dive; } else { &surface; } }
I know that a calling "name" is passed when calling a method on an object. Is there something that can be used here and||or is it possible to "abuse" the OO syntax?
In reply to sub calling name by Dogma
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |