in reply to a not so complex if statment
The match logic can be made clearer and easier to debug like this:
use strict; my $max; my $min; my $Files = 10; my $IdleTime = 10;
{ next if ! defined ($max) and ! defined ($min); next if ! defined ($min) and $Files < $max; next if ! defined ($max) and $IdleTime < $min; next if $Files < $max and $IdleTime < $min; print "Match\n"; last; } continue { print "No match\n"; }
|
|---|