18 May 2006 14:35
perldoc -f qw (and others)
<simon <at> unisolve.com.au>
2006-05-18 12:35:57 GMT
2006-05-18 12:35:57 GMT
Hello,
Most Perl functions have some sort of entry available
for the user who learns how to type:
perldoc -f func_name
So perldoc -f sort (or map or grep) all return pretty
useful information.
I'm a little concerned that for the newer user, the qw()
entry:
perldoc -f qw
qw/STRING/
Generalized quotes. See "Regexp Quote-Like Operators" in
perlop.
is a little on the brutal side! (And the same is true for qx(), qq(), etc).
My thinking is this:
* The user has to work out how to find the
"Regexp Quote-Like Operators" section in perlop, and
* Then has to be motivated enough to go and do it. Now while
this is less trouble for people who are in an environment
where "Regexp Quote-Like Operators" is a hyperlink to that
section in the perlop page, (such as is the case on perldoc.perl.org
(Continue reading)
RSS Feed