summaryrefslogtreecommitdiff
path: root/lib/Pod/Html.pm
diff options
context:
space:
mode:
Diffstat (limited to 'lib/Pod/Html.pm')
-rw-r--r--lib/Pod/Html.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/Pod/Html.pm b/lib/Pod/Html.pm
index 1d9be88b6f..f6a91c2178 100644
--- a/lib/Pod/Html.pm
+++ b/lib/Pod/Html.pm
@@ -697,7 +697,9 @@ sub parse_command_line {
if $opt_verbose && defined $opt_flush;
$dircache = "$cachedir/pod2htmd$cache_ext";
$itemcache = "$cachedir/pod2htmi$cache_ext";
- unlink($dircache, $itemcache) if defined $opt_flush;
+ if (defined $opt_flush) {
+ 1 while unlink($dircache, $itemcache);
+ }
}