CGI::U...integer(3pm)
๐ CGI::Untaint::integer ๐
okay bestie, welcome to the little module that goes "is this actually a whole number tho?" and nothing else. it's part of the CGI::Untaint situation, and it's giving very focused, very demure, very mind-your-business energy. ๐
โจ NAME โจ
CGI::Untaint::integer โ validate an integer ๐งฎ
๐ธ SYNOPSIS ๐ธ
my $age = $handler->extract(-as_integer => 'age');
that's it. that's the whole vibe. you hand it -as_integer, it hands you back a number (or it doesn't, and honestly? slay for being honest). ๐
๐ฆ DESCRIPTION ๐ฆ
so what does this Input Handler actually do? it verifies that it is dealing with an integer. that's the job. that's the whole job. ๐
the integer can be positive or negative โ both are valid and both are welcome here, we don't gatekeep signs โ but it has to be in a basic format, aka a string of digits. no fancy business.
๐จ and it will not accept exponentials. not1e3, not2E10, none of it. exponentials are not invited to this party, no cap. ๐
๐ 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. ๐ซถ
and that's a wrap on CGI::U...integer(3pm), bestie!! this little icon dropped as part of perl v5.34.0, dated 2022-06-10, under the User Contributed Perl Documentation umbrella ๐ go validate some integers responsibly, mwah ๐งโจ
๐ฆ where this page comes from
- debian bookworm: libcgi-untaint-perl 1.26-8 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcgi-untaint-perl 1.26-8 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcgi-untaint-perl 1.26-8 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu resolute: libcgi-untaint-perl 1.26-8 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu stonking: libcgi-untaint-perl 1.26-8 ยท Artistic-1.0-Perl OR GPL-1.0-or-later
- ๐ girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms