go ahead... be a heretic | |
PerlMonks |
Re: mail2sms for Kannelby Discipulus (Canon) |
on Nov 10, 2017 at 09:54 UTC ( [id://1203111]=note: print w/replies, xml ) | Need Help?? |
Hi Pizu and welcome to the monastery and to the wonderful world of Perl! Start every Perl progrm with: use strict; use warnings; on the top of it! to get address you can use split using ; as separator. Remember to chomp eventual newlines at the end of that input. To check valid mail address is probably better using a dedicated module of CPAN like Email::Valid Then if you need to check the presence of 8 numbers a regex seems a valid option: see perlrequick Again to remove part of a string use regexes as substitution as in s/found/substitution/ form. To issue an HTTP request you can use LWP::Simple or LWP::UserAgent or other CPAN modules Show us what you achive using the above suggestion applied to get a more detailed, useful, merited help
L*
There are no rules, there are no thumbs.. Reinvent the wheel, then learn The Wheel; may be one day you reinvent one of THE WHEELS.
In Section
Seekers of Perl Wisdom
|
|