John V. Pataki wrote: > Bill and Randy, > > No - I meant if my main is my_main.pl and my module is > my_mod.pm .... what special variable in my_mod.pm will > = "my_main.pl" > > I found I can do this using 'caller'... > > ($package,$filename,$line) = caller; # in my_mod.pm > > and $filename = "my_main.pl" > > I was looking for a special variable like $0 that > would already have this value for $filename
Uh, that would still be $0 as I stated in previous post. $0 will be the same when used in the module as it is in main. > I would think that __FILE__ would = "my_mod.pm" ... Exactly. But your Q was ambiguous at best. -- ,-/- __ _ _ $Bill Luebkert Mailto:[EMAIL PROTECTED] (_/ / ) // // DBE Collectibles Mailto:[EMAIL PROTECTED] / ) /--< o // // Castle of Medieval Myth & Magic http://www.todbe.com/ -/-' /___/_<_</_</_ http://dbecoll.tripod.com/ (My Perl/Lakers stuff) _______________________________________________ ActivePerl mailing list [EMAIL PROTECTED] To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
