You can call a subroutine as a method using the two syntaxes in the example below.
But you can also call it not as an object.
#==================================================== package Opa; sub opa{ $first= shift; $second= shift; print "Opa $first -- $second\n"; } package main;
This is the way, from within the subroutine, to know, in general, what sub reception caused ?.
source share