4 ms·
Nitpick: use constant name => value; Albeit `Const::Fast` might be considered preferable for several reasons (deeply readonly structures, variables which y
by darrenf 5y ago
Nitpick:
use constant name => value;
Albeit `Const::Fast` might be considered preferable for several reasons (deeply readonly structures, variables which you can interpolate rather than barewords, etc).
- hpcjoe 5y agoAgreed. I tend to use syntactic sugar like use constant true => (1==1); use constant false=> (1==0); in many of my codes. It lets me use them as barewords, and makes the logic it appears in, saner. But this is a style/taste thing.