Last active
August 29, 2015 14:25
-
-
Save mmar/0ad94af01f9ca813eb98 to your computer and use it in GitHub Desktop.
Try go guess names from email addresses
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Usage: my $name = guess_name_from_email( $email ); | |
sub guess_name_from_email { | |
return join q( ), map { ucfirst lc } ( sub { ( shift, pop ) } )->( split /\./, ( split /@/, shift )[0] ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment