Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
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?
[Corion]: I think I'm overdesigning things again. I want to export(later, synchronize) data from Google Keep, by scraping the HTML. And I'm thinking of automating this by having a canary note whose text my program knows and from which it can determine the ...
[Corion]: ... surrounding HTML to scrape all the other notes. Maybe I should better look at dumping all the requests that pass between Google and my "browser" instead.

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2017-12-12 08:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What programming language do you hate the most?




















    Results (327 votes). Check out past polls.

    Notices?