Skip Menu |

This queue is for tickets about the Catalyst-Runtime CPAN distribution.

Report information
The Basics
Id: 117988
Status: stalled
Priority: 0/
Queue: Catalyst-Runtime

People
Owner: Nobody in particular
Requestors: steve [...] computurn.com
Cc:
AdminCc:

Bug Information
Severity: Important
Broken in: 5.90112
Fixed in: (no value)



Subject: Modules loaded by Catalyst are failing with 'Bareword "xxx" not allowed while "strict subs" in use
Bareword "FROM_CHILD" not allowed while "strict subs" in use at site_perl/5.24.0/Expect.pm line 136. Bareword "FROM_PARENT" not allowed while "strict subs" in use at site_perl/5.24.0/Expect.pm line 159. Compilation failed in require at site_perl/5.24.0/Catalyst/Utils.pm line 309. Expect has no problems if loaded on it's own, but when incorporated into a Catalyst application, it needs to have 'no strict "subs";' is added to it.
On Tue Sep 20 12:15:27 2016, STEVEC wrote: Show quoted text
> > Bareword "FROM_CHILD" not allowed while "strict subs" in use at > site_perl/5.24.0/Expect.pm line 136. > Bareword "FROM_PARENT" not allowed while "strict subs" in use at > site_perl/5.24.0/Expect.pm line 159. > Compilation failed in require at site_perl/5.24.0/Catalyst/Utils.pm > line 309. > > Expect has no problems if loaded on it's own, but when incorporated > into a Catalyst application, it needs to have 'no strict "subs";' is > added to it.
Doing a simple test of running "Catalyst::Utils::ensure_class_loaded('Expect')" doesn't trigger this error for me. And I don't see any reason why it should happen. Can you provide a code sample that reproduces this error?