http://qs321.pair.com?node_id=6464


in reply to How to determine the program path from a set-uid program

You read correctly re: the security issue. In fact, this very information is found in perlsec. So, unless you're willing to use a wrapper script of some sort (which, it seems, could have the disadvantage of making your program insecure anyway), I don't think there's a solution to your problem. Sorry.