twpear has asked for the wisdom of the Perl Monks concerning the following question:
use MIME::Base64 qw(encode_base64 decode_base64); #ENCODE open(INBIN, "<:bytes","in.ico") or die "$!"; open(OUTB64, ">esc.b64") or die "$!"; binmode(INBIN); while (read(INBIN, $buf, 60*57)) { print OUTB64 encode_base64($buf); } close (INBIN); close (OUTB64); #DECODE open(OUTBIN, ">:bytes","out.ico") or die "$!"; open(INB64, "<esc.b64") or die "$!"; binmode(OUTBIN); while (<INB64>) { print OUTBIN decode_base64($_); } close (OUTBIN); close (INB64);
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MIME::Base64 on win32 (Activestate 5.10) broken ?
by ikegami (Patriarch) on Jan 30, 2009 at 17:01 UTC | |
|
Re: MIME::Base64 on win32 (Activestate 5.10) broken ?
by mr_mischief (Monsignor) on Jan 30, 2009 at 17:28 UTC |