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...
-
Are you posting in the right place? Check out Where do I post X? to know for sure.
-
Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
<code> <a> <b> <big>
<blockquote> <br /> <dd>
<dl> <dt> <em> <font>
<h1> <h2> <h3> <h4>
<h5> <h6> <hr /> <i>
<li> <nbsp> <ol> <p>
<small> <strike> <strong>
<sub> <sup> <table>
<td> <th> <tr> <tt>
<u> <ul>
-
Snippets of code should be wrapped in
<code> tags not
<pre> tags. In fact, <pre>
tags should generally be avoided. If they must
be used, extreme care should be
taken to ensure that their contents do not
have long lines (<70 chars), in order to prevent
horizontal scrolling (and possible janitor
intervention).
-
Want more info? How to link
or How to display code and escape characters
are good places to start.
|