Utilities
Welcome to Jim's Utilities area. These utility scripts are
set processes / functions / sub-routines that Perl Services' programmers
use repeatedly. Simply "require" the desired utility before using it for the
first time. In most cases, the sub-routine name is identical to the file name
without the extension on the end. For example, to use the "check_email.pl"
utility, download it and place it in the same directory as your main script.
In you main script, near the top and before you call the utility, add this line of code :
require "check_email.pl";
To call the utility use this line of code :
if(check_email($email)){
the email format is good, keep going
} else {
the format is bad, warn the user
}
Download All ( 22kb, 3 seconds )
- backup.pl & restore.pl
- Backup & Restoration for ASCII files.
- check_email.pl
- Validate the format of an e-mail address
- date.pl
- Get and build the date in various formats
- dayname.pl
- Convert a date into the name of the day it falls on.
- env_vars.pl
- See a servers environment variables and features ( Stand Alone )
- fileage.pl
- Determine the age of a file in various formats
- format_length.pl
- Specify a string length and make all strings fall within that length. Works great for User Names and Passwords.
- format_url.pl
- Take an input URL and force it into the http://www.foo.com format.
- getfile.pl
- Eliminate the need to type the code to open a file over and over.
- parse.pl
- A powerful and robust parsing routine for form input. Plugs a lot of security concerns.
- redirect_html.pl
- If your script is creating directories, you need this to prevent people from browsing those directories.
|