in reply to Question about Perl man pages

You can use perldoc -f for functions and perldoc -v for variables, but there's no similar switch for operators. What you could do is to use this time to learn operators. Sometimes, I use Term::Shell as a personal notebook mechanism. Instead of making postit notes, I write a few subs using my notes. I put together a sample that can get you going. I started with comma, but as you progress, just add a sub for each operator.
package perlop; use base qw(Term::Shell); my $obj = perlop->new(); $obj->cmdloop; use strict; use warnings; sub prompt_str { my $cwd = 'cwd'; $cwd =~ s[^\Q$ENV{HOME}\E][~]; "perlop> "; } sub run_comma { print <<"EOF"; Binary "," is the comma operator. In scalar context it evaluates its l +eft argument, throws that value away, then evaluates its right argume +nt and returns that value. This is just like C's comma operator. In list context, it's just the list argument separator, and inserts bo +th its arguments into the list. These arguments are also evaluated fr +om left to right. The => operator is a synonym for the comma except that it causes its l +eft operand to be interpreted as a string if it begins with a letter +or underscore and is composed only of letters, digits and underscores +. This includes operands that might otherwise be interpreted as opera +tors, constants, single number v-strings or function calls. If in dou +bt about this behaviour, the left operand can be quoted explicitly. Otherwise, the => operator behaves exactly as the comma operator or li +st argument separator, according to context. EOF print "\n"; }

Replies are listed 'Best First'.
Re^2: Question about Perl man pages
by JavaFan (Canon) on Jul 08, 2010 at 12:01 UTC
    but there's no similar switch for operators.
    At the last YAPC::NA, there was a lightning talk from someone who's rewriting perlop so each operator gets its own section (currently many operators are grouped together, for instance +=, |=, >>=, etc). Once that work is done, adding another flag to perldoc to search for an operator would not be hard to implement.