Skip Menu |

This queue is for tickets about the P CPAN distribution.

Report information
The Basics
Id: 89049
Status: resolved
Priority: 0/
Queue: P

People
Owner: pause [...] tlinx.org
Requestors: l.mai [...] web.de
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 1.0.20
Fixed in: (no value)



Subject: SYNOPSIS contains description
The SYNOPSIS contains not just short code samples but also this text: P is a combined printf, sprintf & say in 1 routine . It was designed to save on typing and undef checking when printing strings. ... This should be part of the DESCRIPTION. Currently the first sentence of the DESCRIPTION is "While designed to speed up and simplify development, isn't limited to such." That's not a description; it's a continuation of the preceding paragraph, indicating that the real description starts much earlier.
A synopsis, by definition, is a "short" description. If it was intended only to be examples of usage, it might be called "USAGE"...? I hear what you are saying -- it's not following some other pod pages which put examples in their SYNOPSIS section, but I don't think this should be that confusing. Simply showing alot of calls that would look like calls to "sprintf", "printf", "print" or "say", says nothing. I.e. it is in what "P" does that is different from those calls that is important. The syntax is mostly the same (if not entirely?) as a call to one of those calls, w/the exception of being more useful about an array argument to sprintf.
Synopsis no longer has such verbiage except as code comments.