# phpman > perldoc > CGI::Untaint::hex

## NAME
    [CGI::Untaint::hex](https://www.chedong.com/phpMan.php/perldoc/CGI%3A%3AUntaint%3A%3Ahex/markdown) - validate as a hexadecimal value

## SYNOPSIS
      my $id = $handler->extract(-as_hex => 'hexvalue');

## DESCRIPTION
    This Input Handler verifies that it is dealing with a hexadecimal value.

## AUTHOR
    Tony Bowden, <<kasei@tmtm.com>>.

## COPYRIGHT
    Copyright (C) 2001 Tony Bowden. All rights reserved.

    This module is free software; you can redistribute it and/or modify it under the same terms as
    Perl itself.

