in reply to Re^2: formatting question
in thread formatting question

Now I'm getting silly...
my $doit = scalar @ARGV >= ($wrongDateFlag ? 3 : (($oneDayFlag == -1) + ? 3 : 2 )); if ($doit) { ... }

Replies are listed 'Best First'.
Re^4: formatting question
by pc88mxer (Vicar) on Jun 24, 2008 at 20:29 UTC
    You can factor it even a little more:
    my $doit = scalar @ARGV >= ($wrongDataFlag || ($oneDayFlag == -1) ? 3 : 2); if ($doit) { ... }