I understand the implementation now by reading the true.xs. https://metacpan.org/release/CHOCOLATE/true-v1.0.2/source/true.xs Only If the file is loaded from require, true value is added to the end of file.