Tag Archives: PERL

Error_reporting in PHP

I have rich experience in programming PHP and PERL. In Perl, I always add the following two lines to my scripts: use strict;  user warning; However, I could not find similar things in PHP. When I am working with a … Continue reading

Share
Posted in Tips | Tagged , , , | Leave a comment

PERL processes files and related functions

Command line parameters If you want to know how many command line arguments the program gets, you can use $#ARGV because ARGV is an predefined array in Perl. Here is code snippet to use this array. if ($#ARGV != 1) … Continue reading

Share
Posted in PERL, Tips | Tagged , , , , | Leave a comment

Convert ip address from dotted quad notation to integer

Normally we see the IP address of our computers is a dotted quad, such as 192.168.2.1. Frequently, IP address is stored in database as integer to save space and provide high performance. How to convert the IP address from a … Continue reading

Share
Posted in Hands-on, Software, Tips | Tagged , , , , , | Leave a comment

A PERL script to get Twitter user information

If you are a Twitter user and do business on Twitter, you probably think about how I can target to a group of Twitter users, such as living in certain region or having similar interests. Can we screen Twitter users … Continue reading

Share
Posted in MySQL, PERL | Tagged , , , , | 1 Comment

SQLite database engine and sample code in C#

The definition in SQLite official site is the following: “SQLite is a software library that implements a self-contained, serverless, zero-configuration, transactional SQL database engine. SQLite is the most widely deployed SQL database engine in the world.” So, how can we … Continue reading

Share
Posted in C/C++/C#, Database | Tagged , , , , , | 1 Comment