Chip Place wrote:
> 
> 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


( my $prog = $0 ) =~ s!^.*/!!;

print "# GENERATED BY $prog\n";



John
-- 
use Perl;
program
fulfillment

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

Reply via email to