From: Barijaona Ramaholimihaso Date: Sat, 22 Sep 2007 10:12:27 +0000 (+0000) Subject: Avoid "conditional and" for testing if $date should be added to $output X-Git-Tag: v2_1_0~53 X-Git-Url: https://git.stderr.nl/gitweb?p=matthijs%2Fupstream%2Fblosxom.git;a=commitdiff_plain;h=aba7cd50d01142480d706bba489f0076bab740f9 Avoid "conditional and" for testing if $date should be added to $output --- diff --git a/blosxom.cgi b/blosxom.cgi index 2e87b75..ee085a3 100755 --- a/blosxom.cgi +++ b/blosxom.cgi @@ -515,7 +515,10 @@ sub generate { $date = &$interpolate($date); - $curdate ne $date and $curdate = $date and $output .= $date; + if ( $date && $curdate ne $date ) { + $curdate = $date; + $output .= $date; + } use vars qw/ $title $body $raw /; if (-f "$path_file" && $fh->open("< $path_file")) {