| Home : Web : Perl |
| Click "Subscribe" if you want to be notified of new or updated links in this category. | Subscribe |
|
|
Perl Listings
|
|
Total:
28 | Displaying: 1 - 10 | Pages: 1 2 3 >> |
|
|
|
Did you think it was easy? Suppose you needed to open a connection to a remote host from within your perl program. One thing you would probably think of doing at first is the following: open TELNET \"|telnet $hostname\"; print TELNET \"$username \"; print TELNET \"$password \"; ... Unfortunately, if you try this, you\'ll find it doesn\'t work. The telnet program connects to the remote host but it completely ignores any commands you pipe to it. That\'s because the telnet program reads it input...
Updated: 05/28/2005
|
|
|
An oversimplified introduction to sockets Sockets are a mechanism that allows programs to communicate, either on the same machine or across a network. The way it works is pretty simple: Each machine on a network is identified by some address. In this tutorial we will talk about tcp/ip networking, so by network address we mean an IP address. (like 192.168.4.4) Apart from the IP address that specifies a machine, each machine has a number of ports that allow handling multiple connections...
Updated: 05/28/2005
|
|
|
A very common task for a cgi script is to be able to inform a set of users with data generated by itself or other programs, cgi\'s or not. For example, you might be one of the web designers who have joined one of the myriad of free counter programs on the internet that email you with nice statistics and reports about your web pages\' traffic. Systems like that are responsible for informing such a large number subscribers that sending the reports manually would require a full-time employee...
Updated: 05/28/2005
|
|
|
What is streaming? By streaming we refer to the decoding of a file consurrently with its download, i.e. rendering the contents of the file as they become available, without having to stand by for the entire file to be downloaded. Streaming is very useful in applications that involve live content (such as readio transmissions, or newscasts) or media files that tend to be very large, that is in applications where the user cannot afford waiting for the download to be completed before the...
Updated: 05/28/2005
|
|
|
The problem I/O requests such as read() and write() are blocking requests. Suppose you have a line in a program thad get STDIN from a terminal like the following: $input = ; What will happen here is that the program\'s execution will block until there a line of input is available, i.e. the user types something followed by a newline. In many cases this is the desired behavior. Suppose you have a program that accepts requests through a socket and does some processing for each...
Updated: 05/28/2005
|
|
|
Introduction A recent flurry of questions to the Perl-XML mailing list points to the need for a document that gives new users a quick, how-to overview of the various Perl XML modules. For the next few months I will be devoting this column solely to that purpose. The XML modules available from CPAN can be divided into three main categories: modules that provide unique interfaces to XML data (usually concerned with translating data between an XML instance and...
Updated: 05/28/2005
|
|
|
Sorting is a commonly needed operation in all kinds of programs. Luckily, for us perl programmers, perl provides a very simple yet extremely powerful mechanism to accomplish any sort you might think of. This article is about teaching the novice programmer how to sort lists of things, while showing to the more experienced folks certain techniques and ideas that could be new to them if they are migrating from a different language. Moving to the meat of the matter staight away, we\'ll start...
Updated: 05/28/2005
|
|
|
Introduction For various reasons, updating Perl in a Nutshell was a challenge. Given the new material that crept into the source kit between Perl 5.005 and the upcoming release of Perl 5.8, as well as things that demanded to be added or updated in the text, I knew that there was much to do. When I learned that the book update was going to be done in XML/DocBook instead of the original format (troff, then...
Updated: 05/28/2005
|
|
|
Not many people would argue that Perl is not one of the most flexible and useful scripting languages available today. Most, however, cannot look past that to see it as a programming language, and a powerful one at that. No one will argue that they could develop a prototype of a product in Java faster than they could in Perl, yet most would abandon Perl as soon as development \"gets serious.\" After all, Perl is just a scripting language. No one in...
Updated: 05/28/2005
|
|
|
Every day, thousands, if not millions, of people view and post messages on Web forums. These forums are public, like billboards, but organized like email into threads, and sorted. My friends and I have been using them for years to keep in touch. Over time, forums have become quite ornate, with polished designs as you would find in slashdot and other places. But I told my friends that at their heart, a forum is really very simple. In...
Updated: 05/28/2005
|
|
|
Perl Listings
|
|
Total:
28 | Displaying: 1 - 10 | Pages: 1 2 3 >> |
|
|