pg has asked for the wisdom of the Perl Monks concerning the following question:
Either something is wrong with the MIME::Base64 module came with 5.8.2, or I missed something simple. (I suspected that my download was not clean, so I just downloaded again, and retested it, but ... Testing is done with active Perl on win2k)
With Perl 5.8.2, when I run the following code:
use IO::Socket; use MIME::Base64; use strict; use warnings; inspect(encode_base64("peip:930612")); sub inspect { (my $copy = shift) =~ s/([^[:print:]])/sprintf " (0x%02x) ", ord $ +1/ge; print $copy; }
It gives me:
cGVpcDo5MzA2MTI= (0x0a)
Looks like there is garbage ...
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: MIME::Base64 is broken in 5.8.2?
by MADuran (Beadle) on Jan 19, 2004 at 20:50 UTC | |
by pg (Canon) on Jan 19, 2004 at 20:57 UTC | |
|
Re: MIME::Base64 is broken in 5.8.2?
by graff (Chancellor) on Jan 19, 2004 at 20:37 UTC | |
|
Re: MIME::Base64 is broken in 5.8.2?
by iburrell (Chaplain) on Jan 20, 2004 at 00:33 UTC | |
|
Re: MIME::Base64 is (working as designed) in 5.8.2
by BrowserUk (Patriarch) on Jan 19, 2004 at 23:52 UTC | |
|
Re: MIME::Base64 is broken in 5.8.2?
by dws (Chancellor) on Jan 19, 2004 at 21:21 UTC | |
by pg (Canon) on Jan 19, 2004 at 21:32 UTC | |
|
Re: MIME::Base64 is broken in 5.8.2?
by Anonymous Monk on Jan 19, 2004 at 22:35 UTC |