Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"

tie STDOUT in Tkx

by Roboz (Novice)
on Dec 03, 2012 at 09:16 UTC ( #1006826=perlquestion: print w/replies, xml ) Need Help??
Roboz has asked for the wisdom of the Perl Monks concerning the following question:

Hello Perl Monks! Once again I need your wisdom. I'm converting a script with Perl::Tk to Tkx for that "more modern" look. Everything was going well till I got to the following:

tie *STDOUT, 'Tk::Text', $txt; tie *STDERR, 'Tk::Text', $txt;

These worked great in Perl::Tk but I'm having a heck of a time finding the Tkx equivalent. I'm thinking it has something to do with the TIEHANDLE method. Is this supported in Tkx? Thanks.

Replies are listed 'Best First'.
Re: tie STDOUT in Tkx
by Anonymous Monk on Dec 03, 2012 at 10:33 UTC
      The road to wisdom? -- Well, it's plain and simple to express: Err and err and err again but less and less and less.

      -- Piet Hein


      When's the last time you used duct tape on a duct? --Larry Wall
        :) Yup, it should be use Tie::STDERR STAPENDER(); as the two modules aren't by the same author their interface isn't identical

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: perlquestion [id://1006826]
Approved by moritz
[Corion]: I think there's always some Dell coupon around, at least I got one the last two times I bought a machine from them
[1nickt]: I have been an apostate in the Apple orchard for almost 15 years. But Dells are still high quality it seems, unlike Macs these days.
[1nickt]: And you can still configure the system at will, on the "Small Business" site.

How do I use this? | Other CB clients
Other Users?
Others scrutinizing the Monastery: (13)
As of 2017-03-27 12:58 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (320 votes). Check out past polls.