NOTE: This is a collection of information and links collected over the years that might provide useful information. A Safer Company LLC does not guarantee, endorse or approve any of these links or their scripts. Use these links to other websites at your own risk.
perl
These are the files in this section:
Perl/CGI Script
Learning Perl/CGI
- HTMLite Perl/CGI Tutorial
- The Site Wizard - Perl CGI Programming, Installation, Debugging
- Perl 5 by example by David Medinets - looks like the book with Chapters
- Printing HTML
- Special characters such as $, @, % ,*) need to be escaped . Remember to escape it with the \ symbol.
- Write your Perl program in a text editor, and save it with a .cgi or .pl extension.
- Upload it to your web server.
- Run it in one of three ways:
- Link to it. (e.g., <a href=myscript.cgi>Click to run my program</a>)
- Embed it into your HTML file (e.g, <p><!--#include virtual="myscript.cgi"-->)
- Use it as the action item of a form (e.g., <form action=myscript.cgi>)
#!/usr/bin/perl
print "Content-type: text/html\n\n";
print <<ENDHTML;
<head>
<title>Contact Us</title>
</head>
<a href="mailto:news\@mydomainname.com">Send us an email.</a>
ENDHTML
Links
- Perl Services.net
- CGI Programming 101
- PageResource
- CGI Script Installation Tutorial
- Devdaily.com
- Anybrowser Free Perl Scripts
- HotScripts
- The CGI Resource Index - A very useful site for finding CGI scripts. The scripts that are linked to are not all free, but if it costs money the price is listed below the link.
- CGI City - This is another great place to find CGI scripts for your site. You can even post a "help wanted" ad to see if someone else out there can make a script for you!
- The CGI Directory - Hundreds of CGI scripts, tutorials, code, books, and other related resources.
- CGI-Index.com - The CGI-Index.com is a directory of over 200 categories of CGI resources. Includes listings of CGI scripts written in every language from Perl to C and C++ and from Visual Basic to Unix Shell-- as well as a number of other great resources. Also includes various CGI and Perl related tutorials and articles.
- Dream Catcher's CGI Scripts - Some more CGI scripts to use. Some are free, others are not.
- Matt's Script Archive - An excellent source for finding useful, free CGI scripts to use on your site. The scripts even come with excellent instructions on how to get them up and running on your web site.
- CGI Resource which can help you find CGI programs for your site.
- Script Search - A nice collection of CGI scripts to try out.
Other
In the meantime, if you have any questions, please contact your Pearson representative (you can find his or her contact information at http://www.pearsonhighered.com/replocator) or visit our Customer Technical Support site at http://247pearsoned.custhelp.com.
- webdeveloper
- http://www.perl.org/books/beginning-perl/ - Very Good Book 9-25-09
http://www.perlservices.net/ Used to get several scripts good source.
Fix time to be AM/PM http://www.htmlgoodies.com/primers/perl/article.php/3478631
Perl Send Mail
# Simple Email Function
# ($to, $from, $subject, $message)
sub sendEmail
{
my ($to, $from, $subject, $message) = @_;
my $sendmail = '/usr/lib/sendmail';
open(MAIL, "|$sendmail -oi -t");
print MAIL "From: $from\n";
print MAIL "To: $to\n";
print MAIL "Subject: $subject\n\n";
print MAIL "$message\n";
close(MAIL);
}
Comprehensive Perl Archive Network CPAN http://www.cpan.org/
My http://perldoc.perl.org/functions/my.html
Perl One line commands http://sial.org/howto/perl/one-liner/
Search and replace: http://www.regular-expressions.info/perl.html
Page last updated: November 02, 2012 08:33 AM
Content and Navigation...