Beefy Boxes and Bandwidth Generously Provided by pair Networks
laziness, impatience, and hubris

Re: mail2sms for Kannel

by Discipulus (Monsignor)
on Nov 10, 2017 at 09:54 UTC ( #1203111=note: print w/replies, xml ) Need Help??

in reply to mail2sms for Kannel

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


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.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1203111]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others about the Monastery: (10)
As of 2018-03-23 15:13 GMT
Find Nodes?
    Voting Booth?
    When I think of a mole I think of:

    Results (294 votes). Check out past polls.