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 -

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to