geoffleach has asked for the wisdom of the Perl Monks concerning the following question:
fails with a syntax error in the module. On the other hand,use lib path use module
executes as expected. usingrequire path/module.pm
does not effect either result. I would appreciate suggestions on what might be going on, or guidance on how to discover what Perl might be objecting to in the module, which (to repeat myself) compiles without error.BEGIN ...
|
---|
Replies are listed 'Best First'. | |
---|---|
Re: Curious behavior of Use
by haj (Vicar) on Feb 20, 2025 at 18:53 UTC | |
Re: Curious behavior of Use
by etj (Priest) on Feb 20, 2025 at 18:34 UTC | |
by geoffleach (Scribe) on Feb 21, 2025 at 23:52 UTC | |
by hippo (Archbishop) on Feb 22, 2025 at 11:00 UTC | |
by etj (Priest) on Feb 22, 2025 at 00:23 UTC | |
by geoffleach (Scribe) on Feb 23, 2025 at 17:21 UTC | |
by afoken (Chancellor) on Feb 24, 2025 at 22:31 UTC | |
by ikegami (Patriarch) on Feb 24, 2025 at 16:34 UTC | |
Re: Curious behavior of Use
by ikegami (Patriarch) on Feb 21, 2025 at 01:35 UTC | |
Re: Curious behavior of Use
by cavac (Prior) on Feb 24, 2025 at 16:04 UTC | |
by ikegami (Patriarch) on Feb 24, 2025 at 16:22 UTC |