in reply to retrieving error messages on terminal and placing it on a text widget
Your question is quite unclear to me. I suppose that you are using some kind of GUI toolkit, like Tk, Wx or Gtk, and are spawning a child process whose output you want to display to the user.
If that is a correct interpretation, then something like IPC::Open3, something from perlipc or the appropriate "spawn a child and run it" method from your GUI toolkit might be what could be made to work for you.
|
|---|