in reply to Get My Own Name
Don't rely on the file, use the inode number instead. To get the inode number of your program, add __DATA__ to the end of it, and use:
my $inode_number = (stat DATA) [1]; # And not fileno!
Abigail
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Get My Own Name
by blue_cowdawg (Monsignor) on Feb 04, 2004 at 16:50 UTC | |
|
Re: Re: Get My Own Name
by Fletch (Bishop) on Feb 04, 2004 at 17:56 UTC | |
|
Re: Re: Get My Own Name
by NetWallah (Canon) on Feb 04, 2004 at 18:21 UTC |