source:
trunk/essentials/dev-lang/perl/ext/PerlIO/t/scalar.t
| Last change on this file was 3181, checked in by , 19 years ago | |
|---|---|
| File size: 3.7 KB | |
| Line | |
|---|---|
| 1 | #!./perl |
| 2 | |
| 3 | BEGIN { |
| 4 | chdir 't' if -d 't'; |
| 5 | @INC = '../lib'; |
| 6 | unless (find PerlIO::Layer 'perlio') { |
| 7 | print "1..0 # Skip: not perlio\n"; |
| 8 | exit 0; |
| 9 | } |
| 10 | require Config; |
| 11 | if (($Config::Config{'extensions'} !~ m!\bPerlIO/scalar\b!) ){ |
| 12 | print "1..0 # Skip -- Perl configured without PerlIO::scalar module\n"; |
| 13 | exit 0; |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | $| = 1; |
| 18 | print "1..27\n"; |
| 19 | |
| 20 | my $fh; |
