home *** CD-ROM | disk | FTP | other *** search
/ Australian Personal Computer 2004 July / APC0407D2.iso / workshop / apache / files / ActivePerl-5.6.1.638-MSWin32-x86.msi / _aa8c01c2868193515cf3c9993c834809 < prev    next >
Encoding:
Text File  |  2004-04-13  |  248 b   |  14 lines

  1. #!/usr/bin/perl
  2.  
  3. use MIME::Base64 qw(encode_base64);
  4.  
  5. my $buf = "";
  6. while (<>) {
  7.     $buf .= $_;
  8.     if (length($buf) >= 57) {
  9.     print encode_base64(substr($buf, 0, int(length($buf) / 57) * 57, ""));
  10.     }
  11. }
  12.  
  13. print encode_base64($buf);
  14.