logo       
Google Custom Search
    AddThis Social Bookmark Button

RE: $0 and path: msg#00126

Subject: RE: $0 and path
Check out the File::Basename module that comes standard.  You can use it to
get just the filename.

-----Original Message-----
From: Chip Place [mailto:cplace@xxxxxxxxxxxx]
Sent: Friday, August 02, 2002 4:29 PM
To: beginners@xxxxxxxx
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: beginners-unsubscribe@xxxxxxxx
For additional commands, e-mail: beginners-help@xxxxxxxx



Try Searching:
servers, voip, java, networking, microsoft ...
<Prev in Thread] Current Thread [Next in Thread>