Le Dim 24 Aoû 2014 13:55:26, dolmen a écrit : > # == This works ========== > my $x = CONST_CLS; > say( $x->("OK") ); > # ======================== > > # == This doesn't works == > # Compile fails: "Constant is not a CODE reference" > #say( CONST_CLS->("OK") ); > # ======================== Here are two workarounds I use for perl < 5.21.4: say do{ CONST_CLS }->("OK"); say &{ +CONST_CLS }("OK"); See Term::Chrome as real world use of &{} overloading and "use constant" combination. https://metacpan.org/pod/Term::Chrome --- via perlbug: queue: perl5 status: resolved https://rt.perl.org/Ticket/Display.html?id=122607