Exercises, examples and other material relating to training module P224. This topic is presented on public course Perl Extra
|Articles and tips on this subject||updated|
|2876||Different perl examples - some corners I rarely explore|
The private Perl course that I ran on Wednesday through Friday of last week was a little out of the ordinary as we were concentrating far more that usual on a wide variety of practices that may be found - either in legacy code or advanced recent code. Great fun for me, and plenty of new examples.
|2970||Perl - doing several things at the same time|
What if you want a Perl process to go off in two different directions at the same time - perhaps a server that's going to handle several connections at the same time, or an application that's going to be doing heavy processing, but at the same time has to respond to inputs from elsewhere, such as the ...
|2695||TCP v UDP / Client v Server - Python examples|
Python's socket module makes it easy for you to write your own clients and server ... and yesterday I produced "Hello World" style examples of each on the final day of our Python Programming Course. I'm going to share these examples with you here ... but I'm also going to add a word of caution first ...
|2402||Automated Browsing in Perl|
I'm reminded on today's Perl course just how powerful some of the modules are, and how much you can do in so little code.
LWP::UserAgent turns your Perl into an automated browser .. the following four lines reading the robots.txt off my web site.
$connex = new LWP::UserAgent("agent" ...
|1918||Perl Socket Programming Examples|
It's always a pleasure to run private courses - for when a questions that's a little bit away from the normal comes up, I can take time to provide a full answer and demonstration without fear of loosing delegates from other companies who have no interest. And so it was today - I have two examples, plus ...
|1073||Heartbeat script in Perl|
Scenario ... an Apache httpd web server is distributing requests around between a number of Apache Tomcat instances on different computers (perhaps using mod_rewrite to allocate the requests). If a Tomcat instance become unavailable (i.e. if the host running it is taken offline) then it's to be removed ...
|604||Perl - multiprocess applications|
There are times that you'll be writing an application that you want to go off and perform task "x" and AT THE SAME TIME have it perform task "y", co-ordinating task "y" with task "x". Threading (NOT the subject covered here) is one possible approach. And another possible approach is forking. How does ...
Examples from our training material
|albert|| Forking, Piping and Signals|
|myweblib.pm|| module to go with s1 web grab example|
|netgrep|| Network grep server - connect via telnet on port 5678|
|perl_robot_client|| robot.txt collector in Perl from a list of sites|
|pfinger|| Client in Perl - talks to remote finger daemon|
|pg1|| LWP - simplest test|
|pg2|| LWP - sets own User Agent|
|s1|| Grab a web page|
|victoria|| fork and talk|
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from http://www.training-notes.co.uk
Topics covered in this module
IP and TCP.
Testing the protocol with telnet.
A final example.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
at our training centre in Melksham, Wiltshire, England.
It's surprisingly cost effective to come on our public courses -
even if you live in a different
country or continent to us
We have a technical library of over 700 books on the subjects on which we teach.
These books are available for reference at our training centre. Also
available is the Opentalk
Forum for discussion of technical questions.