bin/perldoc

changeset 774
d6a54f86ab10
parent 743
76c4c96d8b9f
--- a/bin/perldoc
+++ b/bin/perldoc
@@ -8,4 +8,6 @@ fi
 if [ -x "$(command -v cpandoc)" ]; then
   exec cpandoc $*
 fi
-exec perldoc $*
+
+BIN="$(which -a perldoc | grep -v $0 | head -n 1)"
+exec $BIN $*

mercurial