Move CPANPLUS from lib/ to ext/
[p5sagit/p5-mst-13.2.git] / ext / CPANPLUS / bin / cpanp-run-perl
CommitLineData
6aaee015 1use strict;
2my $old = select STDERR; $|++; # turn on autoflush
3select $old; $|++; # turn on autoflush
4$0 = shift(@ARGV); # rename the script
5my $rv = do($0); # execute the file
6die $@ if $@; # die on parse/execute error
7
8### XXX 'do' returns last statement evaluated, which may be
9### undef as well. So don't die in that case.
10#die $! if not defined $rv; # die on execute error