[Koha-bugs] [Bug 16582] t/Price.t test should pass if Test::DBIx::Class is not available

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Mon May 30 12:23:10 CEST 2016


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=16582

--- Comment #10 from M. Tompsett <mtompset at hotmail.com> ---
As per comment #6's PS, first one is renamed.

As per comment #5: "I don't understand why use_ok are in the BEGIN block?"
-- I wondered the same thing.

"A BEGIN code block is executed as soon as possible, that is, the moment it is
completely defined, even before the rest of the containing file (or string) is
parsed. You may have multiple BEGIN blocks within a file (or eval'ed string);
they will execute in order of definition. Because a BEGIN code block executes
immediately, it can pull in definitions of subroutines and such from other
files in time to be visible to the rest of the compile and run time. Once a
BEGIN has run, it is immediately undefined and any code it used is returned to
Perl's memory pool."

So, perhaps a memory optimization?

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list