What is that?

There are a couple of tricks to help you answer that. Since $_ has been defined, start with that. Using perldoc, just enter

perldoc -v '$_'
It'll return the info for $_. Note that you'll need to use single-quotes around $_ to avoid interpolation.

$_ is a perl builtin variable, but how would you know that? You can get a complete list of builtin variables by using B::Keywords:

#!/usr/bin/perl use strict; use warnings; use B::Keywords qw(:all); print join "\n", @Symbols, "\n";
What if you encounter a function that you don't know? Using perldoc, enter, for example, the function "my":
perldoc -f my
To get a categorized list of functions, you'll use Pod::Functions. You'll need to enter the complete path to your Pod::Functions:
perl /usr/lib/perl5/5.8.8/Pod/Functions.pm
I'm not aware of a quick and easy way to get perl's operators.

Update: ELISHEVA has reminded me that you can access perlop by entering doc://perldoc in the perlmonk's search bar.


In reply to Re: On patterns and more by Khen1950fx
in thread On patterns and more by Sary

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post, it's "PerlMonks-approved HTML":



  • 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:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.