check out the man page called "perlfunc", it describes all of perl's functions and what they do.
if you are running on a shell that lets you create aliases or functions (like bash), a good alias is:
alias perlfunc='perldoc -f'
# or as a function:
function perlfunc {
local func=${1:?"Need a function name"}
perldoc "$1"
}
# add one of the above to your ".bashrc...
Then you can just type the name of the function:
> perlfunc print
KFPMKBZGPT(1) User Contributed Perl Documentation KFPMK
+BZGPT(1)
print FILEHANDLE LIST
print FILEHANDLE
print LIST
print Prints a string or a list of strings. Returns true if
successful.
....
Printing to a closed pipe or socket will generate a SIG
+PIPE
signal. See perlipc for more on signal handling.
perl v5.16.2 2013-03-10 KFPMK
+BZGPT(1)
Note, the above is not the whole entry (it's a page long, but will tell you exactly what it does...
if you have your documentation installed as 'manpages',
man perlfunc
will show you the whole list. (it's *way* long...)
Hope that helps...
Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
Read Where should I post X? if you're not absolutely sure you're posting in the right place.
Please read these before you post! —
Posts may use any of the Perl Monks Approved HTML tags:
- a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
| |
For: |
|
Use: |
| & | | & |
| < | | < |
| > | | > |
| [ | | [ |
| ] | | ] |
Link using PerlMonks shortcuts! What shortcuts can I use for linking?
See Writeup Formatting Tips and other pages linked from there for more info.