Record current time





ranking Sort Sort   |   date Sort Sort   |   member Sort Sort
Syndication

« Previous 1 2 Next »
-1
Date Submitted Thu. Aug. 31st, 2006 7:43 AM
Revision 1
Scripter ctiggerf
Tags Email | Perl | RegExp
Comments 0 comments
Just a simple check to make sure that a person's email address matches their domain.

For example .. in a form you have 2 textboxs .. 1 for their website url, the other for their email address. This checks to see if the domains for the email address and the website url match.
0
Date Submitted Sat. Mar. 8th, 2008 1:41 PM
Revision 1
Beginner chorny
Tags find | Grep | Perl
Comments 0 comments
Usage:
found('asdf',@array);

P.S. In perl 5.10 can be written as
use 5.010;
'asdf'~~@array;
0
Date Submitted Sat. Mar. 8th, 2008 3:54 PM
Revision 1
Beginner chorny
Tags MD5 | Perl
Comments 0 comments
Digest::MD5 is core from 5.8.
5
Date Submitted Thu. Aug. 31st, 2006 7:58 AM
Revision 1
Scripter ctiggerf
Tags Email | Perl | RegExp | Validate
Comments 3 comments
Simple function to check for a valid email address. Makes sure the @ and a . are in the right place. There is most likely a perl package on CPAN that would be more extensive, but this happens to work for my uses.
5
Date Submitted Thu. Feb. 16th, 2006 8:37 AM
Revision 1
Helper digitaljunkie
Tags Perl
Comments 2 comments
I needed a quick way to make a Street Address and City proper case.
Lingua::EN::NameCase works best for peoples names, but it does not work well for Addresses. This is not intended by any means to be complete, but is quick and dirty.

Plus, there are not many Perl snippets here. So, I thought I would start simple :-)
5
Date Submitted Fri. Nov. 3rd, 2006 12:07 PM
Revision 1
Helper jarfil
Tags "Command Line" | Perl
Comments 2 comments
I've found it kind of complicated to strip newline chars from a file with just the commandline. This tiny piece of code does just that.

I've found it especially useful when extracting tabulated data from a grabbed site where each cell is on a different html line. This way I can pre-filter the html, remove the newlines, and insert them again at register boundaries (row end in this case), so that with just a couple more replacement from within a regex enabled text editor I can copy&paste it directly to a database.
6
Date Submitted Thu. Aug. 31st, 2006 8:44 AM
Revision 1
Scripter ctiggerf
Tags API | Database | mysql | Perl
Comments 3 comments
A database API written in Perl for a MySQL.

You will need to edit the settings for your server.

Enojy
6
Date Submitted Thu. Aug. 10th, 2006 1:14 PM
Revision 1
Beginner sio2man
Tags CGI | Perl
Comments 1 comments
Prints the user's IP address and localtime on a web page.
7
Date Submitted Mon. Nov. 14th, 2005 7:05 PM
Revision 1
Helper ses5909
Tags File | Perl | Size
Comments 1 comments
Get a FileSize
7
Date Submitted Tue. Mar. 7th, 2006 4:34 PM
Revision 1
Helper digitaljunkie
Tags Clipboard | Perl | Screenshot | Win32::API
Comments 1 comments
This requires Win32::API, and Win32::Clipboard.
Only works on Win32 Platforms. Only really tested on Win2000, and WinXP.

Not meant to be an be all, end all, but it's a start.

Have fun!
« Previous 1 2 Next »