On Fri, 23 Mar 2012 02:35:28 -0400 Uri Guttman <u...@stemsystems.com> wrote:
> On 03/23/2012 12:21 AM, Manfred Lotz wrote: > > On Thu, 22 Mar 2012 20:06:35 -0400 > > Uri Guttman<u...@stemsystems.com> wrote: > > > > My idea behind using always braces was that then I'm always sure > > Perl does the right thing. > > > > it is hard to make perl do the wrong thing with print and handles. > > >> in fact there are many ways to print and indirect handles is > >> a weak style IMO. OO style is cleaner (you need to load IO::File or > >> IO::Handle). you can select the new handle with select() and later > >> reselect STDOUT (there are idioms and modules for this). > >> > > > > As long as I use the "three-argument" form of open I don't see any > > reason not to use open (at least in small scripts). > > where did i mention open? When you were recommending IO::File etc. I assumed you would not recommend to use open. That's why I wanted to make a point for open(). I apologize for misunderstanding what you were saying. -- Manfred -- To unsubscribe, e-mail: beginners-unsubscr...@perl.org For additional commands, e-mail: beginners-h...@perl.org http://learn.perl.org/