Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))

Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P303
Miscellany
Exercises, examples and other material relating to training module P303. This topic is presented on public course Perl for Larger Projects

If you're going to be using Perl in depth every day, this module covers some golden nuggets and extra syntaxes that you might have been looking for. There's a rule of thumb with Perl Ð "If you're finding something more difficult than you expected, there's probably an easier way".


Articles and tips on this subjectupdated
3159Returning multiple values from a function call in various languages - a comparison
I've always thought it a bit odd that you call a function with any number of parameters, and yet it returns a single value; in Java, C or C++ you declare a return type (void if there is not to be anything returned) and you are then constrained by that specification. There are, of course, other ways ...
2011-02-10
 
2876Different 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. Here ...
2010-12-04
(longest)
3012Exception handling in Perl - using eval
Exception handling is the trapping of nonstandard results from blocks of code or functions - for example, if I draw a card from a pack and ask you "what suite is this?" you'll usually be able to tell me "it's a heart" or "it's a club" ... but if I had drawn a joker, there would have been no appropriate ...
2010-10-23
 
2877Further more advanced Perl examples
I've uploaded a further batch of new examples (that makes around 40 in total!) from the private Perl course that I ran from Wednesday through Saturday last week - many of them adding a new twist on to previous examples. If you read a comment below and thing "that's what I'm looking for an example of", ...
2010-07-30
(longer)
2219Configuring httpd, or Tomcat, to run CGI scripts in Perl
Here's a Perl / CGI script - a "Common Gateway Interface" program that I want to run on my web server, and access via my browser. What server to I need to run it on, and how do I set that server up? #!/usr/bin/perl   print ("Content-type: text/html\n\n"); $now = localtime();   print "<h1>It ...
2010-06-23
 
2427Operator overloading - redefining addition and other Perl tricks
What does addition actually mean? It means different things depending on what you're adding together, and in Perl you can redefine additions - and other operators - on objects of types which you define. This is known as operator overloading, and there's a complete code example here. So ... how do ...
2010-06-20
 
Examples from our training material
asp   Command line options to add implicit read loop and split
cmc.pm   Defining a subroutine prototype
dob   uses of "do"
evx   try and catch simulation via eval
go1   The goto statement ... if you must ...
go2   goto based on a value - a sort of switch
go4   Goto an array of possibilities
goflavours   goto, and jumping with last
gogo   Goto based on string
hoco   the continue block
mudemo   running an operating system command
mudemo2   Testing to see if a variable is tainted
owncheck   Use of caller and wantarray
pex   Exception Handing in Perl
pmg   magic goto
protodemo   subroutine prototype
spt3   A subroutine prototype defined too late
spt4   A subroutine prototype defined in time
sptest1   Using a prototyped method correctly
sptest2   Using a prototyped method incorrectly
sudemo   Operation that will fail if run tainted
waw   warnings, caller, wantarray, ref, $#_
Background information
Some modules are available for download as a sample of our material or under an Open Training Notes License for free download from [here].
Topics covered in this module
Checking calling sequences.
Trust.
Checking yourself.
Subroutine prototypes.
Examples.
Where am I?.
Which file? Which line of that file?.
Goto Statements.
The unconditional goto.
The "computed" goto.
goto a subroutine.
Do and continue.
continue blocks.
do statements.
Command line options.
Tainted Perl.
How does tainting work?.
How do I tell if a scalar is tainted?.
Untainting information.
Other special variables.
Special Lists.
Special Hashes.
Special Scalars.
Special file handles.
Special subroutines.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Ruby, Lua, Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses 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.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2024: 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/resources/P303.html • PAGE BUILT: Sun Oct 11 14:50:09 2020 • BUILD SYSTEM: JelliaJamb