blahblah has asked for the wisdom of the Perl Monks concerning the following question:

Hello, 5 weeks ago I posted the node wherein I described a problem I was having getting XML::SAX::PurePerl to work properly under 5.005_03.

I have realized that this is a problem related to the -T switch.

If you run the code included on that node *without* the switch on 5.005_03, it runs fine. Run *with* the switch it kills the parser with a "invalid start character" message.

The thing thats making me crazy though, is that under 5.6.0 it runs fine *with* or *without*, so its not a problem with tainted vars! :( I wish I could use 5.6.0! :(

Can someone with a heart of gold please take a look at this under 5.005_03 and try to find out where this might be - a bug in perl or a bug in XML::SAX?

Caveats:
- I must use 5.005_03. I can't upgrade the server.
- I must use -T on this script

Thanks!
Alex

p.s.- I did post a bug to rt.cpan.org as asked in the bottom of my last node, but no one has answered or had time to look at it and I need to finish this script. I'm hoping it's monks to the rescue! ;)
  • Comment on Perl -T killing XML::SAX parsing under 5.005_03

Replies are listed 'Best First'.
Re: Perl -T killing XML::SAX parsing under 5.005_03
by petral (Curate) on Jul 30, 2002 at 17:24 UTC
    #!/usr/bin/perl -Tw Seems to me this didn't work in perl 5.00503, you had to do perl -T script.

      p