You can make the name grab more reliable by using -1 to get the last element.
- my $name = (split '([^/]+$)', $ENV{'SCRIPT_NAME'} || $0)[1]; + my $name = (split '/', $ENV{'SCRIPT_NAME'} || $0)[-1];
In reply to Re: perldoc.cgi
by tachyon
in thread perldoc.cgi
by ccn
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |