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

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

by ibm1620 (Pilgrim)
on May 09, 2022 at 17:59 UTC ( #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 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.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2022-10-02 22:42 GMT
Find Nodes?
    Voting Booth?
    My preferred way to holiday/vacation is:

    Results (13 votes). Check out past polls.