Learn how to Make Money Online | Free Tech Magazines
Go4Expert
Go4Expert RSS Feed

Go Back   Programming and SEO Forum >  Go4Expert > Articles / Source Code > Programming

Post New Thread  Submit New Article Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 
Tutorials and Source Code in : Perl Bookmarks Forum Tools Search this Forum
Announcement
Views: 11,611 View Announcement Announcement: Rules for Duplicate Article Submission
10-08-2008 shabbir (Go4Expert Founder)
  Rating Article / Author Last Post Reverse Sort Order Replies Views
 
pradeep
There are many ways to send email from a Perl script, one the all time popular being using sendmail. But, there are other ways of sending emails, one of which is using the module Net::SMTP.All you have to do is to include the Net::SMTP module in your script and try using the example below. ...
11-07-2009 09:22 AM
by rahul_mawana Go to last post
8 15,360
 
XXxxImmortalxxXX
Introduction IRC is a very easy protocol to communicate with once you get the basics. I'll be showing how to create a 'bot' (=robot) in the well-known scripting language Perl. All the commands sent to the server can also be ported to any other programming or scripting language. I will not go...
09-19-2009 11:58 AM
by Fatboy12345236 Go to last post
4 3,544
 
pradeep
Getting a recursive listing of all the specified directories within a specified path using FTP. We sometimes requires to calculate the number of directories or the number of files, and sometimes even the total size of files inside the specified directory. The following code is written to get the...
09-09-2009 09:27 PM
by caesurus Go to last post
6 9,639
Talking
pradeep
Ceil in Perl Cieling is basically outputing the next largest integer for an given real number. ceiling(x) is the smallest integer not less than x Ways to do it in Perl, a) using our own logic my $num = 45.4; my $ceil = int($num + 0.99);
09-02-2009 07:55 PM
by shabbir Go to last post
2 1,996
Talking
Thread Rating: 2 votes, 5.00 average. pradeep
Introduction Pagination is a very basic requirement of a web application, in this article we'll see how to implement pagination easily using the Perl module Data::Pageset. Basically there are two types of pagination, Jumping and Sliding. In the jumping type the current page jumps from the...
08-16-2009 02:20 PM
by shabbir Go to last post
2 970
Talking
pradeep
Introcution Amazon's S3 is a really amazing service, where you can store unlimited amount of data at a very cheap rate, and the service being really reliable at the same time. Signing up for the service is really easy, you are charged a very low rate only for what you use, you can read more about...
08-03-2009 03:33 PM
by shabbir Go to last post
1 688
Cool
pradeep
I was wondering whether its possible to write a program which acts like a proxy server in Perl, so what I figured out was anything is possible with Perl. Below is the code, try it, its wonderful. I used threads to manage multiple requests, so the program can handle multiple requests...
07-03-2009 09:17 PM
by alfa Go to last post
12 5,837
Talking
pradeep
Introduction We all write programs to run on the terminal to do jobs that take time, like processing logs, sending out newsletter, etc. To know the progress of our task we print some messages to know our program is running well and doing its job. But wouldn't it be nice if we could add a...
07-02-2009 12:21 PM
by shabbir Go to last post
1 1,432
Cool
Thread Rating: 1 votes, 5.00 average. pradeep
Read An Entire File All At Once At times we need to read the contents of a file all at once, instead of reading line by line, or reading the contents line-wise into an array, here's how we can read the contents of a file into a scalar as text. open FILE, '</tmp/page.html' or die $!;...
06-07-2009 04:08 PM
by Karapaz Go to last post
3 4,296
Cool
pradeep
Introduction Sanitizing HTML is just removing unwanted HTML elements from any inputted HTML code, it does not validate HTML code. We all have seen many sites which allow you to post comments using only a few HTML elements like <a>, <b>, <i> etc. the other HTML tags are automatically removed,...
06-03-2009 10:35 AM
by shabbir Go to last post
1 1,307
 
naveen
Hi, Perl has been very famous for providing with very small but very useful programs, especially for the web. Hit Counters are one of such domains. Here is a small perl code to implement a basic hit counter in a web page #!/usr/bin/perl -wT print "Content-type:text/html\n\n"; $log =...
04-23-2009 04:48 PM
by shabbir Go to last post
1 4,343
Lightbulb
pradeep
A very common technique used by many developers is to redirect the user to another URL or the referrer URL after doing some work e.g. processing a form. In Perl all headers have to printed before any actual content is outputed. A very simple way of redirecting to another URL #!/usr/bin/perl ...
04-18-2009 12:46 AM
by fazalca Go to last post
3 2,154
Lightbulb
pradeep
Working with dates is a very common feature of any application, be it a web app or a desktop one. Some people consider Perl to be a language where working with dates is hard, but basically it's quite easy if you know how to. Datetime is a common term while refering to date and time together. ...
01-10-2009 03:40 PM
by ruby20 Go to last post
4 11,682
Cool
Thread Rating: 62 votes, 5.00 average. pradeep
As Perl programmer we might want to shoot off a mail for some reason or the other, especially if we've used Perl for the web. Perl being such a powerful language, it's can do virtually anything you want to do with it. Sending a mail is a piece of cake, be it using sendmail or using SMTP. CPAN is a...
10-30-2008 03:36 PM
by pradeep Go to last post
5 2,965
Thumbs up
Thread Rating: 21 votes, 5.00 average. pradeep
Introduction May times we require to check whether a process is running or not, may be for the purpose of maintaining a lock file for a process or for some other reason. Here today we'll discuss a technique in which we can do this checking provided the process/pid being checked is checked is...
09-29-2008 02:41 PM
by shabbir Go to last post
5 6,095
Cool
pradeep
Introduction CSV is a comma separated value data file is a physical ASCII file structure that contains records whose values are delimited or separated by commas. CSV is a common file type which can be imported into spreadsheet applications such as MS-Excel, database applications such as...
06-06-2008 01:45 PM
by pradeep Go to last post
0 15,013
Talking
Thread Rating: 11 votes, 4.91 average. pradeep
In rashida.par's Recursive function to find X to the power n (http://www.go4expert.com/forums/showthread.php?t=9307) I see that she intelligently used recursion to find the power of x to n. So, I was wondering whether we can do this iteratively also, I always do that - trying to find a iterative...
04-08-2008 01:18 AM
by rai_gandalf Go to last post
1 4,750
Cool
pradeep
Introduction To Hashes In Perl (http://www.go4expert.com/forums/showthread.php?t=8518) Preserve Add Order Perl doesn't guarantee the order of the elements of hash, they may be in a different order everytime you access the hash. It's a much wanted, rather expected behaviour that I get my...
04-04-2008 07:45 PM
by shabbir Go to last post
1 11,119
Cool
Thread Rating: 1 votes, 5.00 average. pradeep
Here are a few tips & tricks which you may find useful when dealing with files/directories in Perl. Perl Test Operators +-------------+------------------------------------+ | Operator | Function | +-------------+------------------------------------+ ...
03-31-2008 06:24 PM
by pradeep Go to last post
0 2,628
Cool
pradeep
Introduction Templating, you can say is a way to separate the business logic from the presentation logic. Most of the world's we application developers use either embeded scripting languages like PHP, JSP, ASP etc. while other use print statments in the scripting languages to output their...
03-27-2008 12:51 AM
by pradeep Go to last post
0 1,781
Post New Thread  Submit New Article Copy HTML to Clipboard  Copy BBCode to Clipboard  Add to del.icio.us  Add to Google  Digg it  Add to Yahoo !  Add to Windows Live  Add to Facebook  Add to StumbleUpon 

Display Options Currently Active Users
Showing articles 1 to 20 of 48 3 (0 members & 3 guests)
 
Forum Tools Search this Forum
Search this Forum :

Advanced Search
Bookmarks

New comments New comments More than 15 replies or 150 views Hot articles with new comments
No new comments No new comments More than 15 replies or 150 views Hot article with no new comments
Closed Thread Article is closed  
 
Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump
 

All times are GMT +5.5. The time now is 04:03 AM.