From 0a11da06831d5a062b6703f1aa1431cc33689e23 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 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