in reply to Re: How relevant is the order of 'use's ?
in thread How relevant is the order of 'use's ?

That's not exactly what constant does, it does this:

use Data::Dump qw/pp/; use constant { C1 => 10 }; sub C2 () { 20 } say pp $::{C1}; say pp $::{C2}; __END__ \10 \20

The empty prototype allows for inlining. See Constant Functions.

Replies are listed 'Best First'.
Re^3: How relevant is the order of 'use's ?
by Eily (Monsignor) on Oct 20, 2016 at 14:38 UTC

    Oh right, I forgot the prototype! Thanks :).