in reply to Re: Unable to assign value to constants using ternary operator
in thread Unable to assign value to constants using ternary operator
thanks for the reply moritz but i'm assigning the value of $word64 based on a condition.Here is the code:
my $hw = `uname -i`; my $word64 = 1 if ( $hw =~/x86_64|ia32e/);
Now how can i use constant for this one?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Unable to assign value to constants using ternary operator
by tobyink (Canon) on May 11, 2012 at 10:30 UTC | |
by AnomalousMonk (Archbishop) on May 11, 2012 at 15:34 UTC | |
by tobyink (Canon) on May 11, 2012 at 15:54 UTC | |
by sathya_myl (Acolyte) on May 11, 2012 at 11:04 UTC |