You could have a subroutine called "blah" that returns true or false:
sub blah {
# Do some thinking here and give a value to $return_code
return $return_code;
}
while (blah) {
# do something really useful here
}
I would categorise that as bad programming style. It will fail under "use Strict". I would prefer to show that "blah" was really a subroutine in the following way:
while (&blah) {
}
or even use &blah() to show this is really a subroutine call.
A question to the true perl gurus - is there any advantage in putting in the () if there are no arguments being passed to a sub?