Re: (Possibly a terrible lamer) is `open' format wrong

2014-11-03 Thread John SJ Anderson
On Mon, Nov 3, 2014 at 9:57 AM, Harry Putnam wrote: > Ken Slater writes: that attribution is wrong. Ken didn't say this, Shlomi did. >> It is a good idea to avoid using $_ in production code: This is an opinion. I think it's ... I hesitate to use the word "controversial", but it's not uni

Re: (Possibly a terrible lamer) is `open' format wrong

2014-11-03 Thread Harry Putnam
Ken Slater writes: > > It is a good idea to avoid using $_ in production code: > > http://perl-begin.org/tutorials/bad-elements/#overuse_dollar_underscore > > So write it as: > > while (my $l = <$ch>) { > print $l; > } Again, easy enough to do. and no doubt it would be good. But why is

Re: (Possibly a terrible lamer) is `open' format wrong

2014-11-03 Thread Shlomi Fish
Hi Harry, On Sun, 02 Nov 2014 17:22:10 -0500 Harry Putnam wrote: > Intermittent programming can lead to brain bleed off. > > In the real script the command is something only found on solaris or > any other zfs filesystem so I just used the first simple command I > could think of. But the aim i