Quick Search:
 
 Perl Code Category Jump to:  

  • Authorized Domain - 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....
  •  
       Home |    Search |    Code Library |    Sponsors |    Privacy |    Terms of Use |    Contact Us © 2003 - 2024 psoug.org