[Koha-bugs] [Bug 24000] Some modules do not return 1
bugzilla-daemon at bugs.koha-community.org
bugzilla-daemon at bugs.koha-community.org
Tue Dec 15 06:21:30 CET 2020
https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=24000
David Cook <dcook at prosentient.com.au> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |dcook at prosentient.com.au
--- Comment #7 from David Cook <dcook at prosentient.com.au> ---
(In reply to Aleisha Amohia from comment #6)
> For the sake of learning and documentation, it'd be awesome to note here why
> it's important for modules to return 1 :)
https://perldoc.perl.org/functions/require
"The file must return true as the last statement to indicate successful
execution of any initialization code, so it's customary to end such a file with
1; unless you're sure it'll return true otherwise. But it's better just to put
the 1;, in case you add more statements."
--
You are receiving this mail because:
You are the assignee for the bug.
You are watching all bug changes.
More information about the Koha-bugs
mailing list