Another interesting bit of information:

If I invoke the script like this

$ perl myperlscript

I don't get the leading ./ or path

does this make any sense?



On Fri, Aug 02, 2002 at 05:01:28PM -0700, Timothy Johnson wrote:
> 
> Check out the File::Basename module that comes standard.  You can use it to
> get just the filename.
> 
> -----Original Message-----
> From: Chip Place [mailto:[EMAIL PROTECTED]]
> Sent: Friday, August 02, 2002 4:29 PM
> To: [EMAIL PROTECTED]
> Subject: $0 and path
> 
> 
> When I try to use the value from $0, I get the full path to the script or a
> leading ./ depending on how the script is invoked.  If I want my log file to
> have a line similar to:
> 
> # GENERATED BY myperlscript
> 
> how can I do this without the extra info:
> 
> # GENERATED BY ./myperlscript
> or
> # GENERATED BY /home/cplace/bin/myperlscript
> 
> Thanks in advance for any help
> 
> Chip Place
> 
> -- 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

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

Reply via email to