perldoc - How to find (offline) perl documentation - "case insensitive" or with regular expression -


how information perldoc (offline) when don't know exact syntax?

example, when searching "lwp" module, it's not sufficient perldoc -m lwp or perldoc -m lwp::simple (in linux/unix).
beginner think, perl provide perldoc -m /lwp/ search explression.
have find out exact syntax of module, , can search documentation (or, write oneliner/grep search pod files expression) - don't remember exact syntax , need hint.

miss something?
searching faq can done expression perldoc -q something not else (-f / -m / ...) ? thank you, support.

update:
- windows: (by case-insensitive nature) 1 can run perldoc [-m] lwp::simple , find lwp::simple
- linux/unix: perldoc has -i parameter insensitive search. (see perldoc -h)
running perldoc -i [-m] lwp::simple find lwp::simple

(the -m parameter displays module code , plaintext pod documentation - 1 can leave it, because it's not pretty)

by exact syntax, mean name of module? why looking documentation module don't know name of?

if want find module names installed locally, cpan(1) give list:

 % cpan -l 

from that, can search name (as mentioned):

 % cpan -l | grep -i lwp 

this follows basic unix idea of reusing tools job. cpan give list , grep searches it.

in list lwp. since module names case sensitive, have use proper case (although case-insensitive file systems fake you):

 % perldoc lwp 

mostly, name of module want read because it's noted in source code or i'm using object of type. take names that:

print "the object of type: ", ref $obj; 

beyond that, there current work (discussed week @ perl conference) index various types of data , let search them.


Comments

Popular posts from this blog

node.js - Node js - Trying to send POST request, but it is not loading javascript content -

javascript - Replicate keyboard event with html button -

javascript - Web audio api 5.1 surround example not working in firefox -