2
0

base64.pl 152 B

123456789
  1. #!/usr/bin/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. }