What is my name
From: Hannu Hirvonen (Hannu.Hirvonen_at_nokia.com)
Date: 10/30/03
- Next message: Sudarshan Raghavan: "Re: What is my name"
- Previous message: Shaun Fryer: "flock() semantics?"
- Next in thread: Sudarshan Raghavan: "Re: What is my name"
- Reply: Sudarshan Raghavan: "Re: What is my name"
- Reply: Roy Johnson: "Re: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Reply: Brian Gerard: "Re: What is my name"
- Maybe reply: Wiggins D Anconia: "Re: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 30 Oct 2003 13:42:45 +0200 To: <beginners@perl.org>
Hi,
I have a little problem. I have script "test.pl" and inside this script I want to know what is "my name" (I mean this "test.pl".
test.pl script
---------------
my $this_scripts_name_is = who_am_I();
sub who_am_I
{
my $my_name = xxxx; # what I have to put to this "xxxx" to get "test.pl" scripts name
return $my_name;
}
Idea is that I read some information from the beginning of this file. There is at least lines:
#
# Usage of this script
#
# Here are instructions for usage of this script
#
#
Everything else is under control but I don't know how to get this script's name "generally". When I solve this problem I will add this "Usage" fields to all my scripts. When running script without parameters (e.g. "test.pl") script print out this "Usage fields".
Br,
- Hannu -
- Next message: Sudarshan Raghavan: "Re: What is my name"
- Previous message: Shaun Fryer: "flock() semantics?"
- Next in thread: Sudarshan Raghavan: "Re: What is my name"
- Reply: Sudarshan Raghavan: "Re: What is my name"
- Reply: Roy Johnson: "Re: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Reply: Brian Gerard: "Re: What is my name"
- Maybe reply: Wiggins D Anconia: "Re: What is my name"
- Maybe reply: Dan Muey: "RE: What is my name"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|