Perl-Email-Project / Email-Valid

perl library to validate email addresses
19 stars 19 forks source link

allow constructor args without dashes #44

Closed yanick closed 8 months ago

yanick commented 6 years ago

For #1

I tweaked the _arrange sub such that it's smart enough to recognize params passed with dashes, without dashes (via new) and via an explicit hashref.

rjbs commented 8 months ago

This seems like adding a bunch of complexity to already complex code, for the sake of making the interface a little less weird, but still really weird. I'm not going to apply this.

A better option might be to write "Email::Validator" with a uniformly better interface.

yanick commented 8 months ago

Heh. At least I can take solace in the fact this wasn't a spur of the moment decision. :sweat_smile: