summaryrefslogtreecommitdiffstats
path: root/scripts/grep.pl
diff options
context:
space:
mode:
authorDavid Leadbeater2015-01-10 17:49:34 +0000
committerDavid Leadbeater2015-01-10 17:49:34 +0000
commit2d920d6f610e176bf121f9089f21956595df70e9 (patch)
tree287ac1dba07509317309acab3161f5da286958e9 /scripts/grep.pl
parent1bae3cffef57d4d46d0230aa4f44cc52c7671b93 (diff)
parentd84f1e1808b3252af83e4963eccfd1e4f19c5326 (diff)
downloadscripts.irssi.org-2d920d6f610e176bf121f9089f21956595df70e9.tar.bz2
Merge branch 'perlcritic-e-l' of git://github.com/obfuscoder/scripts.irssi.org into obfuscoder-perlcritic-e-l
Conflicts: scripts/eng_no_translate_dpryo.pl
Diffstat (limited to 'scripts/grep.pl')
-rw-r--r--scripts/grep.pl2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/grep.pl b/scripts/grep.pl
index 976d867..35ce15c 100644
--- a/scripts/grep.pl
+++ b/scripts/grep.pl
@@ -57,7 +57,7 @@ sub cmd_grep {
$cmd = join(' ',@args);
# check if the regexp is valid
- eval("'' =~ /$match/");
+ eval { qr/$match/ };
if($@) { # there was an error
chomp $@;
Irssi::print($@,MSGLEVEL_CLIENTERROR);