Skip to content

Commit

Permalink
Try perldoc before perldoc -f, so this command now works for package …
Browse files Browse the repository at this point in the history
…names (e.g., 'Carp'). Packages with '::' in their names need to be selected first.

git-svn-id: http://svn.textmate.org/trunk/Bundles/Perl.tmbundle@7119 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
granth committed May 3, 2007
1 parent 6ee68e1 commit 836c7bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Commands/Perldoc on Word.plist
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
<string>nop</string>
<key>command</key>
<string>word=${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}
perldoc -u -f "$word" 2&gt;/dev/null | pod2html --q --title "Perl Documentation - $word" 2&gt;/dev/null | sed -E 's|&lt;a href="#(item_)?([^"]+)"&gt;|&lt;a href="http://perldoc.perl.org/search.html?q=\2"&gt;|g'
(perldoc -u "$word" 2&gt;/dev/null || perldoc -u -f "$word" 2&gt;/dev/null) | pod2html --q --title "Perl Documentation - $word" 2&gt;/dev/null | sed -E 's|&lt;a href="#(item_)?([^"]+)"&gt;|&lt;a href="http://perldoc.perl.org/search.html?q=\2"&gt;|g'
if [[ -e "${TM_DIRECTORY}/pod2htmd.tmp" ]]
then unlink "${TM_DIRECTORY}/pod2htmd.tmp"
fi
Expand Down

0 comments on commit 836c7bb

Please sign in to comment.