Will Bontrager Blogs Web Site Techniques
Perl Articles
Adjusting Date By Number Of Days
Unix system time is the number of seconds elapsed since January 1, 1970. To adjust a date by a certain number of days with Perl, convert the date to a system time number, adjust the system time number by 86400 for each day, then convert the result into a date. (86400 is the number of seconds in a day.)
Improving Email Deliverability
It isn't difficult to specify a valid Return-Path. Do it to ensure your form's email is actually delivered.
Here is a simple file upload script. It has a dual purpose, something easy to install for those who can use it and something to study for those who want to see how it's done.
Extracting Domain Name from URL
I oftentimes need to extact the domain name form a URL in the software I write. And I thought I would share my method.
Here is a guide to setting up email forwarding to a script, and a script you can use for testing.
Extracting First Name from Full Name
It's actually quite simple to extract the first name from a variable containing the full name.
Using Perl and Unix Commands To Find Directory Sizes
After mentioning there might be a handy Unix command to do the job, Phil did some research and provided working examples for readers, incorporating a Unix command in a Perl script to get directory sizes.
Banning Email Addresses With Any Perl Script
Once in a while, we receive inquiries about how to ban email addresses with this or that Master Series script. There are 3 steps to add a banned email address feature to a Perl script.
Using Perl Variable Values In JavaScript of Web Page Generated with Perl
We intermittently receive queries about how to use Perl variables within JavaScript. This would be JavaScript that's part of a web page generated/created by the Perl script.
Last week, I was working on a project that required reading the width and height of images that web site visitors would upload.
When asked to type a list of domain names (as an example) into a textarea field, users might separate the domain names with a space, a comma, a semi-colon, a line feed, or a combination of those. You, as the programmer, as expected to write code that can make sense of that.
How To Calculate Leap Years with Perl
Programmers must not forget about leap years when programming dates. Certain rules apply.
Adjusting time forwards (and backwards) is easy with Perl.
Converting and Formatting System Time
Here is code you can use to convert system time to human-readable format.

