|
From: | Paolo Bonzini |
Subject: | [Qemu-devel] Re: [PATCH v2 3/3] checkpatch: adjust to QEMUisms |
Date: | Mon, 17 Jan 2011 08:40:11 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101209 Fedora/3.1.7-0.35.b3pre.fc14 Lightning/1.0b3pre Mnenhy/0.8.3 Thunderbird/3.1.7 |
On 01/15/2011 06:45 PM, Blue Swirl wrote:
+ if ($level == 0 && !$block =~ /^\s*\{/ && !$allowed) {
I'm not a Perl expert at all, but I think you need parentheses for the argument of "!":
if ($level == 0 && !($block =~ /^\s*\{/) && !$allowed) { Paolo
[Prev in Thread] | Current Thread | [Next in Thread] |