CGI::Untaint::email - validate an email address
| Use Case | Command | Description |
|---|---|---|
| Extract and validate an email address from untrusted CGI input | my $email = $handler->extract(-as_email => 'emailaddress'); |
Returns a Mail::Address instance if the input is a valid RFC2822 mailbox format |
use CGI::Untaint;
my $handler = CGI::Untaint->new($q->Vars);
my $email = $handler->extract(-as_email => 'emailaddress');
CGI::Untaint::email input handler verifies that it is a valid RFC2822 mailbox format.
The resulting value will be a Mail::Address instance.
Tatsuhiko Miyagawa <miyagawa AT bulknews.net>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Generated by phpman v4.9.22-1-g1b0fcb4 · Markdown · JSON · MCP Author: Che Dong Under GNU General Public License
2026-07-05 02:37 @216.73.216.52
CrawledBy Mozilla/5.0 AppleWebKit/537.36 (KHTML, like Gecko; compatible; ClaudeBot/1.0; +claudebot@anthropic.com)
Enhanced by LLM: deepseek-v4-pro / taotoken.net / www.chedong.com - original format