Beefy Boxes and Bandwidth Generously Provided by pair Networks
Do you know where your variables are?
 
PerlMonks  

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



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
Node Status?
node history
Node Type: note [id://1203111]
help
Chatterbox?
[marto]: use dreamweaver they said, it's brilliant they told me...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (10)
As of 2018-07-20 12:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    It has been suggested to rename Perl 6 in order to boost its marketing potential. Which name would you prefer?















    Results (431 votes). Check out past polls.

    Notices?