in reply to how to store binary string?
use MIME::Base64 qw( encode_base64 decode_base64); $ascii_dat = encode_base64($bin_string); #or reverse $bin_string_back = decode_base64($ascii_dat); [download]