>
> --- Nigel Peck - MIS Web Design <[EMAIL PROTECTED]> wrote:
> > Can someone please remind a forgetful idiot how to get the
> name of the
> > script being run (the file itself)?
I alwayd use CGI:
use CGI qw(:standard);
my $self = url(relative => 1);
HTH
Dan
> >
> > Cheers,
> > Nigel
> >
Thanks all :)
> -Original Message-
> From: Kristofer Hoch [mailto:[EMAIL PROTECTED]
> Sent: 17 July 2003 23:09
> To: [EMAIL PROTECTED]
> Subject: Re: Script's Name
>
>
>
> --- Nigel Peck - MIS Web Design <[EMAIL PROTECTED]> wrote:
> > Can so
--- Nigel Peck - MIS Web Design <[EMAIL PROTECTED]> wrote:
> Can someone please remind a forgetful idiot how to get the name of
> the script being run (the file itself)?
>
> Cheers,
> Nigel
>
> MIS Web Design
> http://www.miswebdesign.com/
>
print "Full File name: $0\n";
Forgetfulness does not
From: "Nigel Peck - MIS Web Design" <[EMAIL PROTECTED]>
> Can someone please remind a forgetful idiot how to get the name of the
> script being run (the file itself)?
$0
See
perldoc perlvar
Jenda
= [EMAIL PROTECTED] === http://Jenda.Krynicky.cz =
When it comes
If I understand you're question correctly, you can get the basename of the
script that you are running ( i.e., minus the extension ) with the code:
my ($basename) = fileparse($0, '\..*');
> Anthony (Tony) Esposito
> Senior Technical Consultant
> Inovis(tm)
> 2425 N. Central Expressway, Suite 900