On Thursday 30 Oct 2003 12:06 pm, Sudarshan Raghavan wrote:
> [EMAIL PROTECTED] wrote:
> >Hi,
> >
> >I have a little problem. I have script "test.pl" and inside this script I
> > want to know what is "my name" (I mean this "test.pl".
>
> $0 will contain the program name
> perldoc perlvar

You can write $0 as well as reading it, which will change what appears when 
you run ps etc.

This can be usefull for security reasons such as hiding sensitive data passed 
on the command line, and also for returning status information for daemons.

Gary
-- 
Gary Stainburn
 
This email does not contain private or confidential material as it
may be snooped on by interested government parties for unknown
and undisclosed purposes - Regulation of Investigatory Powers Act, 2000     


-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to