|
|
DataMuseum.dkPresents historical artifacts from the history of: DKUUG/EUUG Conference tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about DKUUG/EUUG Conference tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - download
Length: 452 (0x1c4)
Types: TextFile
Names: »inplace.t«
└─⟦4f9d7c866⟧ Bits:30007245 EUUGD6: Sikkerheds distributionen
└─⟦b5330643c⟧ »./cops/perl-4.019/perl.tar.Z«
└─⟦2b9a58213⟧
└─⟦this⟧ »perl-4.019/t/io/inplace.t«
#!./perl
$^I = '.bak';
# $Header: inplace.t,v 4.0 91/03/20 01:50:59 lwall Locked $
print "1..2\n";
@ARGV = ('.a','.b','.c');
`echo foo | tee .a .b .c`;
while (<>) {
s/foo/bar/;
}
continue {
print;
}
if (`cat .a .b .c` eq "bar\nbar\nbar\n") {print "ok 1\n";} else {print "not ok 1\n";}
if (`cat .a.bak .b.bak .c.bak` eq "foo\nfoo\nfoo\n") {print "ok 2\n";} else {print "not ok 2\n";}
unlink '.a', '.b', '.c', '.a.bak', '.b.bak', '.c.bak';