Stories
Slash Boxes
Comments
NOTE: use Perl; is on undef hiatus. You can read content, but you can't post it. More info will be forthcoming forthcomingly.

All the Perl that's Practical to Extract and Report

The Fine Print: The following comments are owned by whoever posted them. We are not responsible for them in any way.
 Full
 Abbreviated
 Hidden
More | Login | Reply
Loading... please wait.
  • it's clearly a random problem with PerlIO::gzip, sometimes it works and sometimes it doesn't. I can't make any sense of it, how can it work some of the time and the rest of the time it generates gibberish? yet you say I'm going to give IO::Uncompress::Gnuzip a go now to see if it's consistent and reliable.

    So, I infer, the cause of the observed problem is not clearly anything, as you don't yet have data ruling out other possible causes, because you've not yet tried the experiment of keeping everything else the same and only changing the suspected component.

    Have you tried the same data file with the same version of ActiveState perl on another OS, with the same versions of all modules? That's probably not that easy to set up, but even the results from same data file, different installation would be informative.

    Also, what is the buffer size for buffered IO under ActiveState perl? That might be part of the cause, as I've seen an error with source filters that only shows up on some *BSDs, where the buffer size (IIRC) was 512 bytes, rather than the more common 4096 bytes. I haven't yet had time to stop and work out why that's going wrong, or where the bug is, but that one appears to be somewhere in some level of the code in the perl core. Hence I know I don't quite trust it, so don't want to rule anything out.

    • Originally I thought that the same compressed file and the same Perl script could be run time after time and some of the time it would and some of the time it would not work. That really confused me, but it's a Windows box with an old version of ActiveState Perl on it, so I'm not expecting perfection.

      I now think that some files can and some can't be processed. Once you have a "bad" compressed file PerlIO::gzip can't deal with it, but other methods can.

      IO::Compress::Gunzip does work with the same file that

      --
      -- "It's not magic, it's work..."