This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
Win32 counterpart of change #19065
[perl5.git] / t / op / readline.t
CommitLineData
79628082
SM
1#!./perl
2
3BEGIN {
4 chdir 't';
5 @INC = '../lib';
6 require './test.pl';
7}
8
ba92458f 9plan tests => 3;
79628082
SM
10
11eval { for (\2) { $_ = <FH> } };
12like($@, 'Modification of a read-only value attempted', '[perl #19566]');
13
ba92458f
AE
14{
15 open A,"+>a"; $a = 3;
16 is($a .= <A>, 3, '#21628 - $a .= <A> , A eof');
17 close A; $a = 4;
18 is($a .= <A>, 4, '#21628 - $a .= <A> , A closed');
19 unlink "a";
20}