![]() |
|
go ahead... be a heretic | |
PerlMonks |
Re^3: Finding what args were passed to the perl interpretter ?by JavaFan (Canon) |
on Nov 20, 2008 at 00:26 UTC ( #724768=note: print w/replies, xml ) | Need Help?? |
I don't think there's a general way to get the arguments to perl from with Perl. However, an XS routine may be able to access argv and argc (although I've no idea whether perl itself leaves them as is).
As for your specific request, detecting -d:NYTProf, it may be done. One of the effects of -d:foo is that it loads Devel::foo, and calls Devel::foo -> import. You may want to try to mask Devel::NYTProf::import.
In Section
Seekers of Perl Wisdom
|
|