This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Re: [PATCH] [perl #18175] B::Concise,-exec doesn't handle // operator well
[perl5.git] / t / io / read.t
CommitLineData
93c1eb4f 1#!./perl
2
3# $RCSfile$
4
5print "1..1\n";
6
7open(A,"+>a");
8print A "_";
9seek(A,0,0);
10
11$b = "abcd";
12$b = "";
13
14read(A,$b,1,4);
15
16close(A);
17
55497cff 18unlink("a");
19
93c1eb4f 20if ($b eq "\000\000\000\000_") {
21 print "ok 1\n";
22} else { # Probably "\000bcd_"
23 print "not ok 1\n";
24}
55497cff 25
26unlink 'a';