CoderZone.org

 Category: Perl Code

Bookmark and Share

Getting Values Submitted From A Form - This function parses the information submitted with the form, submitted ...
Grab the last element of an array - Perl will wrap array indexes smaller than zero around to the end of the arr...
GTK2 Exif Thumbnail Reader - This snippet gets thumbnail from exif metadata, and is useful for quickly generati...
HTTP Post With Perl - Make an HTTP post with Perl.
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.
Output To STDOUT Or A File - FileHandle is deprecated in favor of IO. This is some example code that shows how ...
Perl SQL Update Example - Updating a record in a database with perl and the DBU module.
Perl version of file_get_contents() - This is the equivalent code for Perl to mimic PHP's "file_get_con...
Perl While Loop Example - If your SQL query will return more than one record, you will need to place the fetchr...
Randomize a list - Randomize a list of elements.
Randomize an array - The values of $i are set by getting the range of array index values using the range operat...
Read the contents of an entire file at once - Simply reads an entire file into memory in one operation.
Regexp: Find and highlight repeated words - This pattern is designed to match a word followed by white-space an...
Remove Duplicate Lines from a File - A quick and easy code snippet to remove duplicate lines from a file.
Remove Duplicate Lines from a File - A simple code snippet to remove duplicate lines from a file.
Removing duplicate array items while preserving order - This snippet removes duplicate array items while preser...
Rename Files Interactively - Very handy way to step through files and rename them.
Reversing text command - Reverse text on the fly with this nifty little snippet.
Run script with no output - Ever wonder how to run a CGI script without returning anything? Here's how.
Sending Email With Perl - This snippet demonstrates one of the typical ways to send email from a Perl script.
Sort A File List By Month Name In Perl - Sorts a file list by month name in Perl.
SQL Insert Example - Here we add two records to the database using an INSERT statement. The data to be entered...
Tabs-To-Space Converter - Returns its argument with any tabs it contained converted into the appropriate number...

© coderzone.org | users online: 7