A perl function.

Usage
hex EXPR

Interprets EXPR as a hexadecimal string returning a string containing the decimal value. If you start EXPR with an 0x then it will be ignored, however it is not mandatory. So 0xff113a would be the same as 0ff113a.