Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: pod-error in perldocs

by ikegami (Patriarch)
on Sep 23, 2009 at 15:55 UTC ( [id://797005]=note: print w/replies, xml ) Need Help??


in reply to pod-error in perldocs

y/// is the last item in perlfunc, so the item is ended by =back.

Whatever is splitting the entries in perlfunc is probably using /^=item\b/m to find where the item ends. This needs to be /^=(?:item|back)\b/m.

Replies are listed 'Best First'.
Re^2: pod-error in perldocs
by thunders (Priest) on Sep 23, 2009 at 16:04 UTC
    That is correct. This is the relevant section in Pod/Perldoc.pm search_perlfunc()
    891 while (<PFUNC>) { # "The Mothership Connection is here!" 892 if ( m/^=item\s+$search_re\b/ ) { 893 $found = 1; 894 } 895 elsif (/^=item/) { 896 last if $found > 1 and not $inlist; 897 } 898 next unless $found; 899 if (/^=over/) { 900 ++$inlist; 901 } 902 elsif (/^=back/) { 903 --$inlist; 904 } 905 push @$pod, $_; 906 ++$found if /^\w/; # found descriptive text 907 }
Re^2: pod-error in perldocs
by LanX (Saint) on Sep 23, 2009 at 16:08 UTC
    Thx!

    Whatever is splitting the entries

    IMHO parsing is done in POD::Simple, but I can't remember this bug in any older perl-versions...

    Anyway I've send an email to perl5porters reporting it and pointing back to this thread.

    If someone can spot the problem or can even supply a patch in thsi thread it should be seen!

    Anyhow I have work to do with POD::Simple next week so I'm gonna have a look...

    Cheers Rolf

    PS: @all Thanx for downvoting! 8)

      I can confirm that this error exists in 5.10.0 and that it does not exist in 5.8.4 or 5.8.8. Also, in 5.10 at least, parsing for this option occurs entirely in Pod::Perldoc, not Pod::Simple.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://797005]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (2)
As of 2026-01-15 18:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What's your view on AI coding assistants?





    Results (118 votes). Check out past polls.

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.