in reply to perldoc.cgi
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];
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: perldoc.cgi
by ccn (Vicar) on Oct 11, 2004 at 09:02 UTC |