. I am asking if there is a way, in CPAN metadata, to express that code expects $Config{useperlio} eq 'define' in the build of perl that is running the program,

Why? C-requirements are defined in .c and .h files not in CPAN metadata.

Which part of which file of your module depends on USE_PERLIO ( "perlio.h" )?

Why is it important for CPAN metadata to know about C-level requirements ?

Code in Build.PL/Makefile.PL is often used to check for missing .h or .c level dependencies. Some go a step further with Alien:: modules that install those dependencies.

You can add in Makefile.PL any check of %Config prerequisites

Devel::PPPort helps with compiling .xs modules on older versions of perl.h

or do I need to consider the "PerlIO not available" case?

Do you? Have you encountered a squeaky wheel that needs grease? cpantesters can help find squeaks

PerlIO is a module ... but does it depend on USE_PERLIO? (does it matter?)


In reply to Re^3: How to declare a dependency on PerlIO in a CPAN module? by Anonymous Monk
in thread How to declare a dependency on PerlIO in a CPAN module? by jcb

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



  • Posts are HTML formatted. Put <p> </p> tags around your paragraphs. Put <code> </code> tags around your code and data!
  • Titles consisting of a single word are discouraged, and in most cases are disallowed outright.
  • Read Where should I post X? if you're not absolutely sure you're posting in the right place.
  • Please read these before you post! —
  • Posts may use any of the Perl Monks Approved HTML tags:
    a, abbr, b, big, blockquote, br, caption, center, col, colgroup, dd, del, details, div, dl, dt, em, font, h1, h2, h3, h4, h5, h6, hr, i, ins, li, ol, p, pre, readmore, small, span, spoiler, strike, strong, sub, summary, sup, table, tbody, td, tfoot, th, thead, tr, tt, u, ul, wbr
  • You may need to use entities for some characters, as follows. (Exception: Within code tags, you can put the characters literally.)
            For:     Use:
    & &amp;
    < &lt;
    > &gt;
    [ &#91;
    ] &#93;
  • Link using PerlMonks shortcuts! What shortcuts can I use for linking?
  • See Writeup Formatting Tips and other pages linked from there for more info.