Subject: | Undefined subroutine &Foo::foo called |
The test suite fails on some of my smoker systems:
...
Undefined subroutine &Foo::foo called at foo.pl line 3.
# Failed test '... and encrypted module runs OK with Carp loaded'
# at t/02_function.t line 786.
# got: ''
# expected: 'Hello, world.'
# Looks like you failed 1 test of 295.
t/02_function.t ......
Dubious, test returned 1 (wstat 256, 0x100)
Failed 1/295 subtests
Undefined subroutine &Foo::foo called at foo.pl line 3.
# Failed test '... and encrypted script + unencrypted module run OK'
# at t/03_script.t line 443.
# got: ''
# expected: 'Hello, world.'
... (etc) ...
It seems that this happens if a module Foo.pm is installed. Maybe it's more safe to use a dummy module name in a namespace you control, e.g. Filter::Crypto::Foo or so.