Advertisement
Guest User

Untitled

a guest
Feb 25th, 2013
116
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 0.20 KB | None | 0 0
  1. #!/usr/perl5/bin/perl
  2.  
  3. use strict;
  4. use warnings;
  5.  
  6. my $file = 'test.file';
  7. open my $fh, '>', $file or die $!;
  8.  
  9. while (<STDIN>) {
  10.     last if /^$/;
  11.     print $fh $_;
  12. }
  13. close $fh;
  14.  
  15. exit 200;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement