By way of pedantry, when you say ...nothing available for perl to assign..., isn't quite right since $result can be non-empty i.e. iff $bin generates anything to STDERR ... either by accident or design :D
A user level that continues to overstate my experience :-))