This is fine. You just need to do sanity checking on
$_->link, which (in theory) usually is a number (14.4, 28.8), but can also be a string (DSL, CABLE, Unknown). Change the
%4d to
%-6s for instance, and everything will work fine.
BlueLines
Disclaimer:
This post may contain inaccurate information, be habit forming, cause atomic warfare between peaceful countries, speed up male pattern baldness, interfere with your cable reception, exile you from certain third world countries, ruin your marriage, and generally spoil your day. No batteries included, no strings attached, your mileage may vary.