in reply to TokeParser

{
    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.

Replies are listed 'Best First'.
Re: Re: TokeParser
by BrowserUk (Patriarch) on Oct 27, 2002 at 09:17 UTC

    perl won't understand, so why should we?

    That's the difference between computers and the human brain - free association of idea's and concepts.

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

    Thanks for confirming my speculation.

    I did read the documentation which is how I knew the answer. I just felt that by putting the onus upon the OP to confirm the 'speculation' by reading it himself might prove beneficial.


    Nah! Your thinking of Simon Templar, originally played by Roger Moore and later by Ian Ogilvy
Re: Re: TokeParser
by strider corinth (Friar) on Oct 28, 2002 at 05:24 UTC
    Telling somebody to read the docs can be done with kindness and finesse. Remember that you haven't always been as experienced as you are today. Some people are coding without even knowing where the docs are, and are doing the best they can at it.

    One aim of this site (as I understand it) is to be welcoming to everyone; that ought to include people who haven't read the documentation. Should we make someone who's learning Perl for the first time hesitant to post here for fear of being lashed because they forgot, or didn't know where to look? Even if this person had the docs available, someone reading and considering asking a question might not. We need to be considerate to them, as well.
    --

    Love justice; desire mercy.