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? you load IO::File or IO::Handle so you can do OO style print calls. this has nothing to do with open. using those modules for open is possible but unneeded IMO.

uri

--
To unsubscribe, e-mail: beginners-unsubscr...@perl.org
For additional commands, e-mail: beginners-h...@perl.org
http://learn.perl.org/


Reply via email to