dragonchild has asked for the wisdom of the Perl Monks concerning the following question:
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:
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
My PM_FILTER code looks likeUNI_YES $x -= $str->length * $font_size; UNI_NO $x -= length($str) * $font_size;
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.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Module::Build and PM_FILTER (lots of ways)
by tye (Sage) on Dec 08, 2004 at 17:07 UTC | |
|
Re: Module::Build and PM_FILTER
by Matts (Deacon) on Dec 08, 2004 at 15:37 UTC | |
by dragonchild (Archbishop) on Dec 08, 2004 at 15:40 UTC | |
by Anonymous Monk on Dec 09, 2004 at 07:55 UTC | |
by dragonchild (Archbishop) on Dec 09, 2004 at 13:47 UTC |