Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: mail2sms for Kannel

by Discipulus (Canon)
on Nov 10, 2017 at 09:54 UTC ( [id://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

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.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://1203111]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (4)
As of 2024-03-29 08:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found