In article <>,
Gunnar Hjalmarsson <> wrote:
>Ben wrote:
>> [stuff]
>Personally I find the coding style somewhat obfuscated. I would
>probably have said something like:
>
> my $noHires = $@;
I now know the rules on what's considered "true", but personally, if I
use a variable in a boolean context, I prefer it to be a clear
boolean, such as the result of a boolean operator, if for no other
reason than documentation. So I'd do
my $hasHires = ($@ eq '');
>> $|++;
>
>Sets $| to a true value (adds 1). See "perldoc perlvar" about the
>meaning of $|.
Turning on autoflush with an increment is ridiculous, when they could
just as easily do
$| = 1;
and have it actually work in all cases (assuming autoflush is
implemented at all). It makes me want to start the program with
$| = -1; # sets $| to a true value, so it should autoflush
just to show how bad an increment is.
--
Tim McDaniel,