summaryrefslogtreecommitdiffstats
path: root/tests/langbench/cat.pl
blob: 915af0aa43fe6e218062f0a32d1cac00050021b1 (plain)
1
2
3
4
5
6
7
8
9
10
# One could argue this should be
# while ($foo = <>) { chomp($foo); print $foo . "\n"; }
# to match what tcl does.
# That slows it down by a factor of 2.
foreach $file (@ARGV) {
	open(FD, $file);
	while ($buf = <FD>) {
		print $buf;
	}
}