home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC Professionell 2004 December
/
PCpro_2004_12.ISO
/
files
/
webserver
/
tsw
/
TSW_3.4.0.exe
/
Apache2
/
perl
/
encode-base64
< prev
next >
Encoding:
Amiga
Atari
Commodore
DOS
FM Towns/JPY
Macintosh
Macintosh JP
Macintosh to JP
NeXTSTEP
RISC OS/Acorn
Shift JIS
UTF-8
Wrap
Text File
|
2003-01-01
|
235 b
|
14 lines
#!/usr/bin/perl
use MIME::Base64 qw(encode_base64);
my $buf = "";
while (<>) {
$buf .= $_;
if (length($buf) >= 57) {
print encode_base64(substr($buf, 0, int(length($buf) / 57) * 57, ""));
}
}
print encode_base64($buf);