RE: Script's Name

2003-07-22 Thread Dan Muey
> > --- 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 > >

RE: Script's Name

2003-07-19 Thread Nigel Peck - MIS Web Design
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

Re: Script's Name

2003-07-17 Thread Kristofer Hoch
--- 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

Re: Script's Name

2003-07-17 Thread Jenda Krynicky
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

RE: Script's Name

2003-07-17 Thread Tony Esposito
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