Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Term::ANSIColor is awesome, but.. (need help) (overload and override)

by mascip (Pilgrim)
on Apr 01, 2014 at 12:34 UTC ( [id://1080546]=note: print w/replies, xml ) Need Help??


in reply to Re^2: Term::ANSIColor is awesome, but.. (need help) (overload and override)
in thread Term::ANSIColor is awesome, but.. (need help)

Additional idea given by a Monger:

local *CORE::GLOBAL::print = \&String::Colored::sing;
That's if I want to not need to change anything in my current code, while adding colors. Any warnings against the dangers of this trick would be very welcome :-)

  • Comment on Re^3: Term::ANSIColor is awesome, but.. (need help) (overload and override)
  • Download Code

Replies are listed 'Best First'.
Re^4: Term::ANSIColor is awesome, but.. (need help) (override)
by tye (Sage) on Apr 01, 2014 at 13:44 UTC

    That's what "Override the output functions you use (like 'print')" means.

    - tye        

      Indeed (^c^) Thank you tye

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others having an uproarious good time at the Monastery: (6)
As of 2024-04-19 07:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found