http://www.perlmonks.org?node_id=991000


in reply to Input validation for built-in hex function

Passing an empty string doesn't throw an error either. So it's at least consistent: Leading '0x' or 'x' is ignored in the input.