in reply to Get My Own Name
Simple and to the point. Then just anuse File::Basename; my $scriptname = basename($0);
in your testing loop, there you go.unless(basename($file) eq $scriptname) { ... }
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Get My Own Name
by Anonymous Monk on Feb 05, 2004 at 16:24 UTC |