---
name: "CGI::Untaint::integer"
section: "3pm"
platform: "linux"
package: "libcgi-untaint-perl"
version: "1.26-8"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/CGI::Untaint::integer"
---

# CGI::Untaint::integer(3pm)

validate an integer

## NAME

CGI::Untaint::integer - validate an integer

## SYNOPSIS

```
  my $age = $handler->extract(-as_integer => 'age');
```

## DESCRIPTION

This Input Handler verifies that it is dealing with an integer. The integer can be positive or negative, but only in a basic format (i.e. a string of digits). It will not accept exponentials.

## 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.
