tomazos has asked for the wisdom of the Perl Monks concerning the following question:

In the POD for HTML::Parser it talks about a call as follows:

$p->handler( event => """" );

I am wondering what the quadruple double-quote is all about. Is this a typo? Should it read:

$p->handler( event => "" );

? -Andrew.

Update: When I incorrectly said pod I mean the result of "perldoc HTML::Parser" from my bash prompt that results in something resembling a man page. On that man page-like thing it has a quadruple double-quote. -Andrew.


Andrew Tomazos  |  andrew@tomazos.com  |  www.tomazos.com

Replies are listed 'Best First'.
Re: HTML::Parser->handler(event => """")
by PodMaster (Abbot) on Aug 26, 2004 at 09:53 UTC

    HTML::Parser->handler(event => """") by tomazos

    In the POD for HTML::Parser it talks about a call as follows:

    $p->handler( event => """" );

    I am wondering what the quadruple double-quote is all about. Is this a typo?

    No it doesn't :) That is not actual pod. The actual pod actually has
    =item $p->handler( event => "" );
    I'm guessing you're viewing the pod translated to html through an old version of Pod::Html?
    update: or you've got an outdated version of HTML::Parser?

    MJD says "you can't just make shit up and expect the computer to know what you mean, retardo!"
    I run a Win32 PPM repository for perl 5.6.x and 5.8.x -- I take requests (README).
    ** The third rule of perl club is a statement of fact: pod is sexy.

Re: HTML::Parser->handler(event => """")
by ccn (Vicar) on Aug 26, 2004 at 09:32 UTC

    I have HTML::Parser with  $p->handler( event => ""); in pod

    $VERSION = '3.34'; # $Date: 2003/10/27 21:19:48 $

    I'm shure that was a typo

Re: HTML::Parser->handler(event => """")
by ambrus (Abbot) on Aug 26, 2004 at 13:02 UTC

    I guess it should be only ""

    I've seen some excess quotes in perldocs too. I thought they were caused by troff-incompatibilities or somesuch, but it didn't really worry me.

Re: HTML::Parser->handler(event => """")
by Aristotle (Chancellor) on Aug 29, 2004 at 19:38 UTC

    On the console (whether in a manpage or via perldoc(1)), C<> sequences are usually rendered as quotes around the contained text. I've often seen POD containing something like C<"$foo$bar"> that ends up rendering as ""$foo$bar"".

    Makeshifts last the longest.