------------------------------------------------ On Thu, 4 Sep 2003 11:17:56 -0500, "Dan Muey" <[EMAIL PROTECTED]> wrote:
<snip> > > I have a bunch of scripts that use a module for simply sharing variables, IE if I > change one I change it in one place instead of having to edit tons of scripts. So I > thought if by chance I wanted to do $|++; in the scripts I could do it in the > module, one place one time, and have all the scripts running that way. > Ah, I think it is coming together now... > The only reason I was thinking about doing this is the discussions about it on the > list lately I was wondering if it might be usefull for output to be unbuffered. So I > thought I'd see how it worked by testing it but I wanted to make sure that if I put > it in the module it would effect the entire script that uses the module it's in. I > don't want to change it back to 0. > So I don'; think I have to worry about using local or putting it in every > subroutine, etc. > There are times when it is useful, like I said before, I prefer the method of leaving default things alone until I need them, but to each their own... Remember this only affects the currently selected file handle, so this could get you into trouble if you rely on it to either unbuffer STDOUT when that may not be the current filehandle, or to unbuffer other filehandles, as it will not provide this for them all by calling it just once. > Just put under the package statement and it effects the entire module and script > that uses it? Right? > Well that is sort of the point, put it under the package statement or before it, put it *anywhere* since it is a global in about the truest since of the word. http://danconia.org -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
