I get the same error. I suspect you're using an old version of Net::IP, which doesn't overload the + operator. There doesn't seem to be any other way of printing the range, either. I can only suggest upgrading to the latest version from CPAN, then the code from the docs should work.