summaryrefslogtreecommitdiff
path: root/Master/tlpkg/tlperl/bin/cpanp-run-perl
blob: 34e62bddd0440adc6e214c47ad7830066291a99c (plain)
1
2
3
4
5
6
7
8
9
10
use strict;
my $old = select STDERR; $|++;  # turn on autoflush
select $old;             $|++;  # turn on autoflush
$0 = shift(@ARGV);              # rename the script
my $rv = do($0);                # execute the file
die $@ if $@;                   # die on parse/execute error

### XXX 'do' returns last statement evaluated, which may be
### undef as well. So don't die in that case.
#die $! if not defined $rv;      # die on execute error