Noah wrote:

Hi there,

Hello,

Is there a way to simplify the following to one line?

    my $value = $t1lsq{$interfaceName};
    $value = 4 if $value > 4;

If you consider this to be simpler:

my $value = $t1lsq{ $interfaceName } > 4 ? 4 : $t1lsq{ $interfaceName };



John
--
Perl isn't a toolbox, but a small machine shop where you
can special-order certain sorts of tools at low cost and
in short order.                            -- Larry Wall

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
http://learn.perl.org/


Reply via email to