in reply to Re^2: Finding what args were passed to the perl interpretter ?
in thread Finding what args were passed to the perl interpretter ?

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.

  • Comment on Re^3: Finding what args were passed to the perl interpretter ?