in reply to Compare two signed integers without using comparision operator in perl
print $a, ' is ', ('smaller', 'equal', 'greater')[1+($a<=>$b)], ' than + ', $b;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Compare two signed integers without using comparision operator in perl
by BrowserUk (Patriarch) on May 07, 2003 at 01:30 UTC |