oalders/http-browserdetect — Issue #25: Methods return nothing rather than undef
Author: tamias
Created: 2011-11-30 19:48:25+00:00
State: open

The methods engine_string(), engine_version(), engine_major(), engine_minor(), device(), and device_name() all have cases where they return nothing (e.g. C). The documentation claims these methods return undef, but in list context, C and C are very different. For example, C<< print join('\t', $bd->device_name, $bd->browser_string, $bd->public_version), "\n"; >> results in two columns, instead of three. These methods should be updated to return an explicit undef, to match the documentation and to be consistent with the rest of the methods, which always return a value.