[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-devel] [OSSTEST PATCH 1/4] cs-ajust-flight: Use qr{} syntax



This is more regular and potentially more efficient,
but has no functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx>
---
 cs-adjust-flight | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/cs-adjust-flight b/cs-adjust-flight
index 04f5a7e..02fd2cf 100755
--- a/cs-adjust-flight
+++ b/cs-adjust-flight
@@ -84,9 +84,9 @@ our $dstflight;
 
 sub spec_re ($) {
     my ($spec) = @_;
-    if ($spec eq '.') { return '(?:)'; }
-    if ($spec =~ m/^\^/) { return $spec; }
-    if ($spec =~ m/^\//) { return $'; } #';}
+    if ($spec eq '.') { return qr{(?:)}; }
+    if ($spec =~ m/^\^/) { return qr{$spec}; }
+    if ($spec =~ m/^\//) { return qr{$'}; } #';}
     return undef;
 }
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxx
https://lists.xen.org/xen-devel

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.