logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Sisimai::RFC1123 - Internet hostname related class

Author

       azumakuniyuki

Class Methods

"is_internethost(String)"
       is_internethost() method returns true when the argument is a valid hostname

           print Sisimai::RFC1123->is_internethost("mx2.example.jp"); # 1
           print Sisimai::RFC1123->is_internethost("localhost");      # 0

Description

       "Sisimai::RFC1123" is a class related to the Internet hosts

License

       This software is distributed under The BSD 2-Clause License.

perl v5.40.1                                       2025-04-12                              Sisimai::RFC1123(3pm)

Name

       Sisimai::RFC1123 - Internet hostname related class

Synopsis

           use Sisimai::RFC1123;

           print Sisimai::RFC1123->is_internethost("mx2.example.jp"); # 1
           print Sisimai::RFC1123->is_internethost("localhost");      # 0

See Also