[Melbourne-pm] $0 manipulation

Brad Bowman list at bereft.net
Thu Aug 30 23:10:56 PDT 2012


On 31/08/12 15:15, Mathew Robertson wrote:
> So how do I update $0 to show script status, but also to have pod2usage,
> FindBin, etc do the right thing?
> I dont expect an easy answer to this... other than:
> a) wont fix
> b) use some variation of another variable ** to fix either the CPAN modules,
> or script status.
>
>
> ** I vote $^0... I dont think it is being used, and it follows both the $0 =
> name and $^ = internal-var convention.
 >
 > Thoughts?

There is a Sys::ProcTitle module on cpan that avoids $0, might suit



More information about the Melbourne-pm mailing list