Craig A. Berry [Tue, 22 Jan 2002 22:14:26 +0000 (16:14 -0600)]
open(script,"$test") || die "Can't run $test.\n";
$_ = <script>;
close(script);
- if (/#!..perl(.*)/) {
- $switch = $1;
- # Add "" to protect uppercase switches on command line
- $switch =~ s/-(\S*[A-Z]\S*)/"-$1"/g;
+ if (/#!.*\bperl.*-\w*([tT])/) {
+ $switch = qq{"-$1"};
} else {
$switch = '';
}