package Bar; use Foo; sub bar { fooit "hello from bar"; } package Foo; sub fooit { # Somehow I want this function to know it was called # from the "Bar" module (in this case). }
package Bar; use Foo; sub bar { fooit "hello from bar"; } package Foo; sub fooit { # Somehow I want this function to know it was called # from the "Bar" module (in this case). }