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) { ... }
In reply to Re: Get My Own Name
by archangelq
in thread Get My Own Name
by peschkaj
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |