This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Test preamble: unify chdir 't' if -d 't';
[perl5.git] / t / lib / compmod.pl
CommitLineData
7200bc44
JH
1#!./perl
2
3BEGIN {
dc459aad
JH
4 chdir 't';
5 @INC = '../lib';
7200bc44
JH
6}
7
8my $module = shift;
9
10# 'require open' confuses Perl, so we use instead.
11eval "use $module ();";
12if( $@ ) {
13 print "not ";
b328b501
CB
14 $@ =~ s/\n/\n# /g;
15 warn "# require failed with '$@'\n";
7200bc44
JH
16}
17print "ok - $module\n";
18
19