Beefy Boxes and Bandwidth Generously Provided by pair Networks
Syntactic Confectionery Delight
 
PerlMonks  

Re^2: Text::ANSI::Util for wrapping "colorful" text

by ibm1620 (Hermit)
on May 09, 2022 at 17:59 UTC ( [id://11143708]=note: print w/replies, xml ) Need Help??


in reply to Re: Text::ANSI::Util for wrapping "colorful" text (updated)
in thread Text::ANSI::Util for wrapping "colorful" text

I've never patched anything before. Does this link provide relevant info? Re: How to patch this module?

FWIW, I'm using perlbrew

Thanks! :)

Replies are listed 'Best First'.
Re^3: Text::ANSI::Util for wrapping "colorful" text
by vr (Curate) on May 10, 2022 at 18:53 UTC

    Yes, it does. But, unless you want to familiarize yourself with "patching" (please do, either now or at leisure), in this trivial case: if as I understand you have the distribution already installed, it's a matter of simple replacement of just 2 lines in a text editor. Third line edit, in "patch", is to pacify a (dubious -- I hope Perlancar would agree) test during installation. Just make a backup copy and edit BaseUtil.pm. Task at hand is kind of borderline in whether sticking to maxima "do not re-invent the wheel" would ultimately benefit you or not. Maybe you'll later encounter unexpected cases of "wrapping text" foreseen by Perlancar many years ago, but not by you with home-made implementation. Maybe not. Sorry for mentoring :)

      Okay, I stumbled through and ran patch successfully, plus make/make test/make install. It passes all of my tests.

      I put in a bug report. Please let me know if it can be improved.

      Thanks!

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11143708]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others exploiting the Monastery: (4)
As of 2024-03-29 04:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found