in reply to Getting a Handle on the un-rulely STDOUT

Can you go on about the idea? I really don't see how putting SelectSaver in a wrapper really helps anything. Why not just use it directly?
  • Comment on Re: Getting a Handle on the un-rulely STDOUT

Replies are listed 'Best First'.
Re: Re: Getting a Handle on the un-rulely STDOUT
by hsmyers (Canon) on Jul 12, 2002 at 21:14 UTC
    Nothing major, it is just that when a SelectSave object is destroyed by going out of scope, the default output handle is restored to its original state. That way I don't have to remember to do it myself-- got bit by that just a little bit ago, couldn't figure out why I wasn't getting any results sent to STDOUT! The function wrapper exists as a convient way to organize (and hide) the details like handle, function to execute and argument for the function.

    –hsm

    "Never try to teach a pig to sing…it wastes your time and it annoys the pig."