tramp-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

base64 encoding with Perl


From: Kai Großjohann
Subject: base64 encoding with Perl
Date: Sat, 27 Jul 2002 11:28:28 +0200
User-agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.3.50 (i686-pc-linux-gnu)

In the documentation for the MIME::Base64 package I see the following:

/----
|     The same approach as a command line:
|    
|        perl -MMIME::Base64 -0777 -ne 'print encode_base64($_)' <file
| 
|     Decoding does not need slurp mode if all the lines contains a
|     multiple of 4 base64 chars:
|    
|        perl -MMIME::Base64 -ne 'print decode_base64($_)' <file
\----

It seems that this would really make base64 encoding/decoding using
Perl quite easy.  But is MIME::Base64 likely to be included in all
(current) Perl distributions?

kai
-- 
A large number of young women don't trust men with beards.  (BFBS Radio)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]