From 294d3c970e361518077e153267e60806352cc208 Mon Sep 17 00:00:00 2001 From: graehl Date: Fri, 16 Jul 2010 22:08:32 +0000 Subject: reverse cat w/o buffering - for testing git-svn-id: https://ws10smt.googlecode.com/svn/trunk@301 ec762483-ff6d-05da-a07a-a48fb63a330f --- vest/tac.pl | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100755 vest/tac.pl (limited to 'vest') diff --git a/vest/tac.pl b/vest/tac.pl new file mode 100755 index 00000000..9fb525c1 --- /dev/null +++ b/vest/tac.pl @@ -0,0 +1,8 @@ +#!/usr/bin/perl + +while(<>) { + chomp; + $|=1; + print (scalar reverse($_)); + print "\n"; +} -- cgit v1.2.3