in reply to How to read encrypted data from informix database into a single variable
Do you want to somehow escape the newlines before writing them to ki_file.txt?
You'd have to pick some standard way to do so if that's what you're intending. Personally, I'd probably choose to dump a hex or base64 representation to file:
# note that part of your trouble could be your antiquated file-handle +representation (doubtful). open my $output_file, ">", "ki_file.txt" or die $!; # unpack can be a little arcane... print $output_file unpack("H*", $ki_token), "\n";
The best document on unpack is actually pack. Please correct me if I've completely missed the point of the question.
-Paul
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How to read encrypted data from informix database into a single variable
by Dev (Initiate) on May 15, 2007 at 13:28 UTC | |
by jettero (Monsignor) on May 15, 2007 at 13:44 UTC | |
by Dev (Initiate) on May 16, 2007 at 09:07 UTC |