in reply to Re^10: How can I set a bit to 0 ?
in thread How can I set a bit to 0 ?

> Sure, any subs will do - they don't have to be constants:

you mean any sub with empty prototype which is the way how constants are implemented in constant

see https://perldoc.perl.org/perlsub#Constant-Functions °

and the OP's code still compiles even if your return values are not constant.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery

°) NB:

Replies are listed 'Best First'.
Re^12: How can I set a bit to 0 ?
by hippo (Archbishop) on May 27, 2022 at 16:11 UTC
    and the OP's code still compiles even if your return values are not constant.

    Yes, that's entirely my point. :-)


    🦛