{
    local $^RANT=1;
I don't know of any module called TokeParser.
I am however, very aware of one called HTML::TokeParser.
If that is indeed the module you are referring to, please refer to it by it's name, so people know what you're talking about.
If you try and say use TokeParser;, perl won't understand, so why should we?
}

I will now quote from the HTML::TokeParser documentation:


 $p->get_text( [$endtag] )
     This method returns all text found at the current position. It will
     return a zero length string if the next token is not text. The
     optional $endtag argument specifies that any text occurring before
     the given tag is to be returned. Any entities will be converted to
     their corresponding character.
You can't be shooting in the dark ~ life ain't a mystery, you just have to read the manual ;D

I don't like to speculate about what's happening. I like to know for sure.

Gee, I wonder what'll happen if I execute rm -rf / whilst logged in as root on my linux machine? Hmmmm, should I try it out and then guess what it does? Anybody, anybody? *sigh*

I wonder why people write documentation anymore ....

____________________________________________________
** The Third rule of perl club is a statement of fact: pod is sexy.


In reply to Re: TokeParser by PodMaster
in thread TokeParser by Anonymous Monk

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.