summaryrefslogtreecommitdiff
path: root/scripts/dpkg-shlibdeps.pl
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2013-01-03 03:46:39 +0100
committerGuillem Jover <guillem@debian.org>2014-05-17 13:30:52 +0200
commit395f6ced94938c72927575e8d5b40305da321799 (patch)
treeb247942b1e2d5e8d4ce50aa60666c14a05fcef47 /scripts/dpkg-shlibdeps.pl
parent600a530a9031341ff76b9764843c3d7a5dc1fd2f (diff)
downloaddpkg-395f6ced94938c72927575e8d5b40305da321799.tar.gz
scripts: Switch unused capturing groups to non-capturing ones
These have better runtime performance, not that it matters in many of the instances here though. Addresses RegularExpressions::ProhibitUnusedCapture. Warned-by: perlcritic
Diffstat (limited to 'scripts/dpkg-shlibdeps.pl')
-rwxr-xr-xscripts/dpkg-shlibdeps.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/dpkg-shlibdeps.pl b/scripts/dpkg-shlibdeps.pl
index b7b2e8237..5b51b6d15 100755
--- a/scripts/dpkg-shlibdeps.pl
+++ b/scripts/dpkg-shlibdeps.pl
@@ -95,7 +95,7 @@ foreach (@ARGV) {
$stdout = 1;
} elsif (m/^-O(.+)$/) {
$varlistfile = $1;
- } elsif (m/^-(\?|-help)$/) {
+ } elsif (m/^-(?:\?|-help)$/) {
usage(); exit(0);
} elsif (m/^--version$/) {
version(); exit(0);