8 # Modified from the original inplace.t to test adding prefixes
12 my @tfiles = (tempfile(), tempfile(), tempfile());
13 my @tfiles_bak = map "bak.$_", @tfiles;
15 END { unlink_all(@tfiles_bak); }
17 for my $file (@tfiles) {
18 runperl( prog => 'print qq(foo\n);',
19 args => ['>', $file] );
31 is ( runperl( prog => 'print<>;', args => \@tfiles ),
33 "file contents properly replaced" );
35 is ( runperl( prog => 'print<>;', args => \@tfiles_bak ),
37 "backup file contents stay the same" );