in reply to Re^2: Unable to assign value to constants using ternary operator
in thread Unable to assign value to constants using ternary operator
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");
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^4: Unable to assign value to constants using ternary operator
by AnomalousMonk (Archbishop) on May 11, 2012 at 15:34 UTC | |
by tobyink (Canon) on May 11, 2012 at 15:54 UTC | |
|
Re^4: Unable to assign value to constants using ternary operator
by sathya_myl (Acolyte) on May 11, 2012 at 11:04 UTC |