Force that stuff to happen at compile time using BEGIN:
my $word64; BEGIN { my $hw = `uname -i`; $word64 = 1 if $hw =~/x86_64|ia32e/; } use constant CRACKLIB => ($word64 ? "/usr/lib64/cracklib_dict" : "/usr +/lib/cracklib_dict");
In reply to Re^3: Unable to assign value to constants using ternary operator
by tobyink
in thread Unable to assign value to constants using ternary operator
by sathya_myl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |