in reply to Re^2: XML::Twig Support for Parameter Entities (installed?)
in thread XML::Twig Support for Parameter Entities
I did look at Corelist and got the impression that none of these are "core" modules. But I didn't look at what non-"core" modules Strawberry includes by default.
Looking at the code for _use():
sub _use ## no critic (Subroutines::ProhibitNestedSubs); { my( $module, $version)= @_; ... if( eval "require $module") { ...
Perhaps they have something loaded that is changing the return value from 'require'? It is pretty darn rare for people to care about the return value from a 'require', which is why I'd write such code as:
if( eval "require $module; 1" ) { ...
I'd also try "require LWP" and see what Perl says in response. It would be good to change Twig so that $@ from one of the _use() calls would be appended to the "cannot expand %dtd; - cannot load 'http://127.0.0.1:5000/parameterEntity_core.dtd'" error messages. [ People often seem to underrate the value of error messages. :) ]
- tye
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: XML::Twig Support for Parameter Entities (require)
by shmem (Chancellor) on Aug 13, 2015 at 07:03 UTC | |
by tye (Sage) on Aug 13, 2015 at 07:16 UTC | |
by shmem (Chancellor) on Aug 13, 2015 at 07:29 UTC | |
by tye (Sage) on Aug 13, 2015 at 07:37 UTC | |
by shmem (Chancellor) on Aug 13, 2015 at 08:23 UTC | |
| |
|
Re^4: XML::Twig Support for Parameter Entities (errors)
by dtdattacks (Initiate) on Aug 13, 2015 at 07:49 UTC |