[Israel.pm] How can I know if my function is called in a script or from embedding Perl in C ?

Yossi Itzkovich Yossi.Itzkovich at ecitele.com
Sun Apr 15 22:52:35 PDT 2007


Hi,
 
I have a module/function that is intended to be embeded in C. When
testing it from scripts I want it to print debug information.
Is there a simple way to know how my code is being executed ?
 I know I cna set a flag (environment or inside Perl), but I am looking
for a "cleaner" way.
 
Yossi




More information about the Perl mailing list