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

use Perl Log In

Log In

[ Create a new account ]

Matts (1087)

Matts
  (email not shown publicly)

I work for MessageLabs [messagelabs.com] in Toronto, ON, Canada. I write spam filters, MTA software, high performance network software, string matching algorithms, and other cool stuff mostly in Perl and C.

Journal of Matts (1087)

Thursday October 25, 2001
03:16 PM

XML::SAX::PurePerl

[ #1075 ]

Today I realised that after my laptop died, I had lost the sources to XML::SAX::PurePerl, because I had never checked it into my CVS repository (which is backed up every night). Thank god for CPAN eh?

Anyway, I downloaded it and immediately discovered that it doesn't work *at all* on perl 5.00503. Mostly because of some wierd issues:

  • binmode($fh, ':raw') for some reason this caused: Useless use of private variable in void context, at compile time. I got around that by sticking it in an eval"" block. I'm sure there's a better way, but I was being lazy.
  • unpack('U*') of course doesn't work on non-unicode aware Perls, so I check the perl version and use 'C*' on 5.00503.
  • The different encoding tests of course don't work on perls without PerlIO. So I skip those tests now.

Seems to work, and I'd love some more feedback from people trying it.

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.
  • >Anyway, I downloaded it and immediately discovered that it doesn't work *at all* on perl 5.00503. Mostly because of some wierd issues:

    > binmode($fh, ':raw') for some reason this caused: Useless use of private variable in void context, at compile time. I got around that by sticking it in an eval"" block. I'm sure there's a better way, but I was being lazy.

    It also doesn't work.

    You should check out the perlfunc entry for binmode(). It says:

    DISCIPLINE can be either of ":raw" for binary mode or ":