<br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
So how do I update $0 to show script status, but also to have pod2usage,<br>
FindBin, etc do the right thing?<br>
I dont expect an easy answer to this... other than:<br>
a) wont fix<br>
b) use some variation of another variable ** to fix either the CPAN modules,<br>
or script status.<br>
<br>
<br>
** I vote $^0... I dont think it is being used, and it follows both the $0 =<br>
name and $^ = internal-var convention.<br>
</blockquote>
><br>
> Thoughts?<br>
<br></div>
There is a Sys::ProcTitle module on cpan that avoids $0, might suit<br></blockquote><div> </div><div>Hi Brad,</div><div><br></div><div>I am familiar with that module, see also Sys::Prtcl, which implements the same function call (except that is does it via <a href="http://syscall.ph">syscall.ph</a>). ACAIK, this only sets the 16byte system proc entry. </div>
<div><br></div><div>Also worth mentioning, that the perldoc for 'perlvar $0' says that as of V5.14, prctl() is already being called.</div><div><br></div><div>regards,</div><div>Mathew</div></div>