Perl dies on big XML file, using STDIN



I get this error when I run a perl script:



unclosed token at line 1, column 0, byte 0 at /System/Library/Perl/Extras/5.18/darwin-thread-multi-2level/XML/Parser.pm line 187.

at mysscript.pl line 8.


Heres line 8 at mysscript.pl



$twig->parse( \*STDIN);


I tried some other variations like:



$twig->parse(\*STDIN);
$twig->parse(*STDIN);


But they didn't work, I know that it also says that there is something wrong with my perl system files but i doubt that, i found someone that had the same problem and he had to fix his code instead.


No comments:

Post a Comment