Home arrow Perl Programming arrow Perl 101: The email form

Perl 101: The email form

Never worked with Perl but always wondered how it works? In this article Pete starts from scratch, explaining everything we need to know to code, test and implement a "mail me" script with Perl. He shows us how to setup the form, how to use the CGI module, and also how to pipe commands directly to sendmail. If you've never worked with Perl before, then this article is exactly what you need to get you started!

TABLE OF CONTENTS:
  1. Perl 101: The email form
  2. Hello world in Perl
  3. Refining Your Script
  4. More Regular Expressions
  5. Conclusion
By: Pete Smith
Rating: starstarstarstarstar / 13
April 25, 2002

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement
So, you've spent hours creating killer graphics in PaintShop, drafted and redrafted your 'about me' section, and scanned in photos of your family and pets. Your next step towards creating your dream website is to add interactivity - and one of the best ways to do that is with Perl CGI. In this article I'll take you through everything you need to know to get started with Perl, finishing with the code for a 'mail me' form to allow your visitors to easily get in touch. But first things first...

You'll need a webhost which offers CGI scripting - and sadly most of the free ones don't. Of those which do, Hypermart is one of my favourites. Alternatively, if you're willing to pay a few dollars per month, there are plenty of hosting companies out their who provide full CGI scripting along with lots of other goodies for budding web designers.

If you don't know any Perl, then that's fine, although having some experience with another scripting language such as PHP will help you understand certain things a bit more clearly, such as regular expressions. Anyhow, now that we've gotten all of that out of the way, let's move on to learn some Perl...

 
 
>>> More Perl Programming Articles          >>> More By Pete Smith
 

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PERL PROGRAMMING ARTICLES

- Perl Turns 25
- Lists and Arguments in Perl
- Variables and Arguments in Perl
- Understanding Scope and Packages in Perl
- Arguments and Return Values in Perl
- Invoking Perl Subroutines and Functions
- Subroutines and Functions in Perl
- Perl Basics: Writing and Debugging Programs
- Structure and Statements in Perl
- First Steps in Perl
- Completing Regular Expression Basics
- Modifiers, Boundaries, and Regular Expressio...
- Quantifiers and Other Regular Expression Bas...
- Parsing and Regular Expression Basics
- Hash Functions

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: