CGI::U...integer(3pm)

๐Ÿ“ฆ
version 1.26 ยท 4 versions
, in debian bookworm, debian trixie, ubuntu noble, ubuntu resolute, ubuntu stonking

๐Ÿ’– 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. not 1e3, not 2E10, none of it. exponentials are not invited to this party, no cap. ๐Ÿ™ˆ

๐ŸŒˆ AUTHOR ๐ŸŒˆ

Tony Bowden, <kasei@tmtm.com> ๐Ÿ’Œ


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