This is the mail.txt under Ubuntu 14.04
This is the mail.txt under Debian 7
This is the mail.txt under Ubuntu 14.04
This is the mail.txt under Debian 7
Another way to do:
Here we are more safe because we can know if the key is found or not.
Result:
Note: The Text::ParseWords is part of perl core.
Thanks Laurent. I will check this and add it for the next version.