Re: using cmp for if statement comparisons

2012-03-14 Thread Shawn H Corey
On 12-03-14 12:35 AM, John W. Krahn wrote: cmp is a binary operator just like eq, ne, gt, lt, ge and le. See `perldoc perlop` and search for /Equality Operators/ -- Just my 0.0002 million dollars worth, Shawn Programming is as much about organization and communication as it is about co

Re: using cmp for if statement comparisons

2012-03-13 Thread John W. Krahn
Noah wrote: Hi there, Hello, I am trying to get two conditions matched how can I get if ( ($source_location eq $destination_location ) && ( $source_device < $destination_device ) ) { That should be: if ( $source_location eq $destination_location && $source_device lt $destination_device )