Perl Code Category
Select a Location
PSOUG Home Page
Oracle Code Library
mySQL Code Library
PHP Code Library
Oracle Terms & Definitions
Oracle Error Codes
Advanced Code Search
- Validates a domain name to prevent remote access. Prevents your form...
Bad Word Filter
- Check a string and filter out prohibited words. Good for forums, guest...
Call subroutine and pass filehandle
- Call a subroutine and pass a filehandle. Perl's
Call subroutine and pass variable by value
- Call a subroutine and pass a variable by value.
Check email address
- Check an email address for validity.
Count words or terms
- Count the number of times a given word or character appears in a ...
Create string by formatting an amount as money
- This uses Tan D Nguyen's module "Locale...
Generate unique strings of random numbers
- This code snippet will produce strings of n...
Get Date 30 days ago
- The easy way to get the date 30 days ago- or any number of days, ...
Inline search and replace
- Super fast recursive search and replace one-liner.
Opening a file
- Open a flat file and get the contents into a string variable.
Perl SQL Update Example
- Updating a record in a database with perl and the DBU module.
Perl While Loop Example
- If your SQL query will return more than one record, you will n...
Randomize a list
- Randomize a list of elements.
Remove Duplicate Lines from a File
- A quick and easy code snippet to remove duplicate ...
Run script with no output
- Ever wonder how to run a CGI script without returning anythi...
SQL Insert Example
- Here we add two records to the database using an INSERT statement....
© 2003 - 2023 psoug.org