This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
toke.c: 'Scalar value %s better written as $%s' cleanup.
[perl5.git] / t / lib / commonsense.t
1 #!./perl
2
3 chdir 't' if -d 't';
4 @INC = '../lib';
5 require Config; import Config;
6 if (($Config{'extensions'} !~ /\bFcntl\b/) ){
7   print "Bail out! Perl configured without Fcntl module\n";
8   exit 0;
9 }
10 if (($Config{'extensions'} !~ /\bIO\b/) ){
11   print "Bail out! Perl configured without IO module\n";
12   exit 0;
13 }
14 # hey, DOS users do not need this kind of common sense ;-)
15 if ($^O ne 'dos' && ($Config{'extensions'} !~ /\bFile\/Glob\b/) ){
16   print "Bail out! Perl configured without File::Glob module\n";
17   exit 0;
18 }
19
20 print "1..1\nok 1\n";
21