Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
Hi, folks! I recently saw a post on TSE about an apparent incompatibility between v5.22.0 and TeXLive's tlmgr progamme. Based on the description in the self-answer, it seems that (some of) the problem is that lines 3109–3110 of tlmgr say:
info("[" . sprintf ('%*2$s', $currnr, $totalnrdigits) . "/$totalnr, $estrem/$esttot] update: $pkg [${kb}k] ($rev -> +$mediarevstr)");
and that this produces the error Redundant argument in sprintf at /usr/local/texlive/bin/tlmgr line 3109. Based on Redundant argument in s Redundant argument in %s, this is because of, well, a redundant argument in sprintf—I guess it's bothered by the fact that two strings are passed, but only one is referenced. However, sprintf lists almost this exact useage as recommended. Is this a (Perl) bug, or perhaps just a lag between online documentation and the latest version (as evidenced by the fact that perldoc online doesn't currently know about this new error message!); and / or is there some appropriate work-around?

In reply to v5.22.0: Redundant argument in %s versus minimum width in sprintf by JadeNB

Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":

  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?

What's my password?
Create A New User
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others exploiting the Monastery: (6)
As of 2021-05-18 11:45 GMT
Find Nodes?
    Voting Booth?
    Perl 7 will be out ...

    Results (178 votes). Check out past polls.