in reply to Re^2: How to read encrypted data from informix database into a single variable
in thread How to read encrypted data from informix database into a single variable

Well, I'd do something along these lines..
open my $fh, '<', $file or die "Can't read '$file': $!\n"; while((my $len = read $fh, my $record, 32) == 32) { # do something with $record ... (read $fh, my $junk, 2) == 2 or last; }

Oh wait... yes, use strict, use warnings :-)

--shmem

_($_=" "x(1<<5)."?\n".q·/)Oo.  G°\        /
                              /\_¯/(q    /
----------------------------  \__(m.====·.(_("always off the crowd"))."·
");sub _{s./.($e="'Itrs `mnsgdq Gdbj O`qkdq")=~y/"-y/#-z/;$e.e && print}
  • Comment on Re^3: How to read encrypted data from informix database into a single variable
  • Download Code

Replies are listed 'Best First'.
Re^4: How to read encrypted data from informix database into a single variable
by Dev (Initiate) on May 16, 2007 at 09:10 UTC
    I took a hex dump and analysing hex dump, was good idea. It simplified lot of things. I took, unload of encrypted data in an file. And then from byte patterns and using simple read() and seek(), i was able to extract the actual encrypted data bytes as i intended to do. Thank you for your inputs :) . have a nice day