summaryrefslogtreecommitdiff
path: root/lib/Text/ParseWords.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Text/ParseWords.pm')
-rw-r--r--lib/Text/ParseWords.pm2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/Text/ParseWords.pm b/lib/Text/ParseWords.pm
index 33b683525d..f86c8c2991 100644
--- a/lib/Text/ParseWords.pm
+++ b/lib/Text/ParseWords.pm
@@ -115,7 +115,7 @@ sub quotewords {
last;
}
else {
- while ($_ && !(/^$delim/ || /^['"\\]/)) {
+ while ($_ ne '' && !(/^$delim/ || /^['"\\]/)) {
$snippet .= substr($_, 0, 1);
substr($_, 0, 1) = '';
}