diff options
author | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 22:08:32 +0000 |
---|---|---|
committer | graehl <graehl@ec762483-ff6d-05da-a07a-a48fb63a330f> | 2010-07-16 22:08:32 +0000 |
commit | 0a11da06831d5a062b6703f1aa1431cc33689e23 (patch) | |
tree | e5e868a5c61648b6df6649617dfc08703f9c136b /vest | |
parent | efd4b6bb374a66eb4db07d9b2b6cef1dc4b6f5b0 (diff) |
reverse cat w/o buffering - for testing
git-svn-id: https://ws10smt.googlecode.com/svn/trunk@301 ec762483-ff6d-05da-a07a-a48fb63a330f
Diffstat (limited to 'vest')
-rwxr-xr-x | vest/tac.pl | 8 |
1 files changed, 8 insertions, 0 deletions
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"; +} |