base64.pl 156 B

123456789
  1. #!/usr/bin/env perl
  2. use MIME::Base64 qw(encode_base64);
  3. my $buf;
  4. while(read(STDIN, $buf, 60*57)) {
  5. my $enc = encode_base64($buf);
  6. print "$enc";
  7. }