Re: Opera + Firefox browser Shortcut for searching CPAN
by dbwiz (Curate) on Apr 13, 2005 at 08:24 UTC
|
http://search.cpan.org/perldoc?%s
When you type "perldoc Module::Name", it will take you
directly to the docs.
However, you must provide an exact name.
No search on partial matches is provided.
Update Removed a spurious "=" sign from the
URL. Thanks ewijava. | [reply] [d/l] |
|
Have you tested it? Accessing perldoc of a module in CPAN
is done via authors directory. Hence your solution will fail.
Alternatively this is the snippet to access perldoc.com website. Applicable for both Opera and Firefox.
http://www.perldoc.com/cgi-bin/htsearch?words=%s&restrict=perl5.8.4
| [reply] [d/l] |
|
| [reply] |
|
|
Re: Opera + Firefox browser Shortcut for searching CPAN & Perldoc
by Roy Johnson (Monsignor) on Apr 13, 2005 at 17:48 UTC
|
| [reply] |
Re: Opera + Firefox browser Shortcut for searching CPAN
by tlm (Prior) on Apr 13, 2005 at 12:08 UTC
|
keyword: pdoc
location: http://perldoc.perl.org/%s.html
example: pdoc perltoot
keyword: pfunc
location: http://perldoc.perl.org/functions/%s.html
example: pfunc chomp
The choice of keywords is arbitrary; use whatever you like.
| [reply] [d/l] |
Re: Opera + Firefox browser Shortcut for searching CPAN & Perldoc
by bhilton (Initiate) on Apr 14, 2005 at 13:35 UTC
|
Maybe it's because I'm on Linux or something, but I can't get the Firefox bookmarks to work as easily as you guys seem to.
I've added a "cpan" bookmark with the following location:
http://search.cpan.org/search?mode=all&query=%s
If I try to search for something with colons (like Text::CSV), I get an alert popup with the following text:
"The URL is not valid and cannot be loaded."
I either have to use "keyword:cpan" instead of "cpan" or replace colons with "%3a" in the module name.
| [reply] |
|
| [reply] |
|
Try to use the snippet I provide *verbatim*, do not alter it.
Even under Linux, you can get the result:
http://search.cpan.org/search?m=all&q=Text%3A%3ACSV&s=1&n=20
Just with command: cpan Text::CSV
Notice the common pattern between the two URLs.
| [reply] [d/l] |
Re: Opera + Firefox browser Shortcut for searching CPAN & Perldoc
by Intrepid (Deacon) on May 15, 2005 at 01:53 UTC
|
I think this is a nice tip, even if it is not Perl code ;-).
ewijaya wrote:
Store this snippet under file: ~/.opera/search.ini
Of course a user of MSWindows (who might well be using Opera) will not have any
" ~ " dir. On my MS Windows XP system I empirically determined
that this expression gives the location of the file which one wants to insert
the Opera "snippet" into:
perl -MFile::Spec::Functions -le "print catfile( \$ENV{USERPROFILE}=>
+q[APPLIC~1]=> q[Opera/Opera7/profile/search.ini] )"
| [reply] [d/l] |
|
That script doesn't work for me, however I am using Opera 9.x, not Opera 7.
If I remember correctly, the search.ini file can be located in the C:\program files\Opera\
| [reply] |