summaryrefslogtreecommitdiff
path: root/sponge
blob: aa1289c4c2f3184ebf45cf303f29cd2ef359461a (plain)
  1. #! /usr/bin/perl -w
  2. # Origin: http://riva.ucam.org/svn/cjwatson/bin/sponge
  3. use strict;
  4. binmode STDIN;
  5. undef $/;
  6. my $input = <STDIN>;
  7. open OUT, "> $ARGV[0]" or die "couldn't open $ARGV[0]: $!";
  8. print OUT $input or die "couldn't write to $ARGV[0]: $!";
  9. close OUT or die "couldn't close $ARGV[0]: $!";