PrePAN

Sign in to PrePAN

Profile

User's Modules

EAV::XS Email Address Validator

This is yet another email address validation module. The main goal is support RFC 6531 (UTF-8 email addresses). And this is default mode of the module.

The major part of the code written in C and there is the separate library called libeav which may be embedded in any application, not just Perl.

Actually, the libeav supports all email address specifications as described in RFC 822, RFC 5321, RFC 5322 and RFC 6531. Also it can be easily modified for your tastes.

This module checks "addr-spec" and does not the "address" specification as many modules does already. See details below:

address = mailbox / group
mailbox = name-addr / addr-spec
addr-spec = local-part "@" domain

gh0stwizard@github 0 comments

Proc::Pathname Retrieves the fully qualified path for the program

A common way to retrieve a path for the program is using the variable $0. However, sometimes it is not working for you. So, you have to find a way to retrieve the path for the program somehow differently.

The module is using system calls to do the job and written as XS module. This module was made for private purposes, mostly, for staticperl.


Ok, this was an introduction part and copy-pasted from the module documentation. Speeking freely, I have made this module because of when using staticperl I was unable to retrieve a correct value of $0 sometimes. And I suppose the module have a limited amount of purposes. I am not sure if it should be uploaded to CPAN, so let's it be here. But, who knows, may be it will be useful for you.

The name of the module was choosen as a combination of well-known system calls on Unix-like systems, more specifically, from Solaris: getexecname(). And, yep, I am not sure if the name is good.

So, if you have something to say, I will be glad to see your comments, suggestions and so on.

gh0stwizard@github 3 comments