On Wed, 2004-11-03 at 16:06, Jim wrote:
> > How do I get the name of the current PERL script I am
> > running? The answer to this question may be very obvious but
> > I can't seem to locate it in my books or other resources.
> >
> > Thanks in advance,
> >
>
> # strip the path info to the scr
> How do I get the name of the current PERL script I am
> running? The answer to this question may be very obvious but
> I can't seem to locate it in my books or other resources.
>
> Thanks in advance,
>
# strip the path info to the script:
(my $prog = $0) =~ s/^.*[\\\/]//;
---
Outgoing ma
$0
-Original Message-
From: Zielfelder, Robert [mailto:[EMAIL PROTECTED]
Sent: Wednesday, November 03, 2004 12:18 PM
To: Perl Beginners List (E-mail)
Subject: How to get name of script
How do I get the name of the current PERL script I am running? The answer
to this question may be
Robert Zielfelder wrote:
How do I get the name of the current PERL script I am running? The
answer to this question may be very obvious but I can't seem to
locate it in my books or other resources.
The natural place to look for the answer to such a question is "perldoc
perlvar".
--
Gunnar Hjalmars
Zielfelder, Robert wrote:
> How do I get the name of the current PERL script I am running? The
> answer to this question may be very obvious but I can't seem to
> locate it in my books or other resources.
>
> Thanks in advance,
>
> Rob Zielfelder
$0 holds the info.
Wags ;)
**
How do I get the name of the current PERL script I am running? The answer
to this question may be very obvious but I can't seem to locate it in my
books or other resources.
Thanks in advance,
Rob Zielfelder
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL