Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I want to add Module::Build support to my CPAN distros - I want to do what all the cool kids are doing.

Except, I use PM_FILTER. *hangs head in shame* I know Schwern has unofficially discouraged it, but I (think I) need it. And, nowhere in the POD for Module::Build is there anything that says how to convert PM_FILTER usage.

So, my question goes kinda like this:

  1. Do I really need PM_FILTER?
  2. If I do, how do I mimic it under Module::Build?

For reference, I use PM_FILTER because PDF::Template supports Unicode for all versions of Perl. Pre-5.8, I use Unicode::String for all my string handling. So, in two .pm files, I have code that looks something like

UNI_YES $x -= $str->length * $font_size; UNI_NO $x -= length($str) * $font_size;
My PM_FILTER code looks like
my $pm_filter = $use_unicode ? q{perl -pi -e "s!UNI_YES ! !g;s!UNI_NO !\\#!g"} : q{perl -pi -e "s!UNI_NO ! !g;s!UNI_YES !\\#!g"};

Which works, AFAICT, on every system that PDF::Template has been installed on. (Which, if I'm honest, has only been Unix, Linux, and Cygwin.)

Being right, does not endow the right to be rude; politeness costs nothing.
Being unknowing, is not the same as being stupid.
Expressing a contrary opinion, whether to the individual or the group, is more often a sign of deeper thought than of cantankerous belligerence.
Do not mistake your goals as the only goals; your opinion as the only opinion; your confidence as correctness. Saying you know better is not the same as explaining you know better.


In reply to Module::Build and PM_FILTER by dragonchild

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, 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, 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.
  • Log In?
    Username:
    Password:

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

    How do I use this? | Other CB clients
    Other Users?
    Others rifling through the Monastery: (6)
    As of 2020-11-28 19:43 GMT
    Sections?
    Information?
    Find Nodes?
    Leftovers?
      Voting Booth?

      No recent polls found

      Notices?