At 11:09 PM 5/23/02 +0200, José Nyimi wrote: >Hello, > >How can I tell my script to get the complete name of the file where this >script is written ? > >I can write something like: > >#!/usr/bin/perl -w > >use strict; >print "My name is ",__FILE__,"\n"; >__END__ > > >But the basename is missing, how can I print the complete name ?
$ perldoc FindBin NAME FindBin - Locate directory of original perl script SYNOPSIS use FindBin; [...] -- Peter Scott Pacific Systems Design Technologies Boston Perl Classes in July: http://www.perldebugged.com/ http://stemsystems.com/class/ -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]