Hi Noah,
The ?: operator would do the trick:
http://www.perl.com/doc/manual/html/pod/perlop.html#Conditional_Operator
I think what you need would be this, but I haven't tried it:
(my $value > 4) ? ($value = 4) : ($value = $t1lsq{$interfaceName});
Ray
Noah wrote:
Hi there,
Is there a way to simplify the following to one line?
---
my $value = $t1lsq{$interfaceName};
$value = 4 if $value > 4;
----
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/