in reply to Re: Writing to Screen and file on Win32
in thread Writing to Screen and file on Win32

This approach has limitations, of course.
Like?

Makeshifts last the longest.

  • Comment on Re^2: Writing to Screen and file on Win32

Replies are listed 'Best First'.
Re: Re^2: Writing to Screen and file on Win32
by BrowserUk (Patriarch) on Oct 02, 2003 at 22:16 UTC

    It only handles print not printf, though that's easily fixed.

    It requires the program to be modified to call myprint() and myprintf() instead of the system versions.


    Examine what is said, not who speaks.
    "Efficiency is intelligent laziness." -David Dunham
    "When I'm working on a problem, I never think about beauty. I think only how to solve the problem. But when I have finished, if the solution is not beautiful, I know it is wrong." -Richard Buckminster Fuller
    If I understand your problem, I can solve it! Of course, the same can be said for you.

      These are inconveniences, not limitations. They don't restrict what you can do this way.

      Makeshifts last the longest.

Re: Writing to Screen and file on Win32
by jonadab (Parson) on Oct 03, 2003 at 04:53 UTC

    For example, you shouldn't pass this routine any tied variables or blessed references that will have unwanted side-effects if stringified twice instead of once.


    $;=sub{$/};@;=map{my($a,$b)=($_,$;);$;=sub{$a.$b->()}} split//,".rekcah lreP rehtona tsuJ";$\=$ ;->();print$/