Exercises, examples and other material relating to training module P256. This topic is presented on public courses Perl Programming
, Perl for Larger Projects
, Perl Extra
, Perl bootcamp
, Learning to program in Perl
, Perl Programming
Perl 6 is being written, and will be with us in due course. What can you look ahead to? What do you need to know at this stage?
Related technical and longer articlesOverview of what we're expecting in Perl 6Parrot - Perl's new Virtual Machine
|Articles and tips on this subject||updated|
|3077||Perl 6 - significantly nearer, and Rakudo looks very good|
There's been a longstanding jest that says "You'll have Perl 6 for Christmas" but goes on to add "but of course we won't tell you which Christmas."
Christmas may have arrived early this year ... for this morning I downloaded Rakudo Star - the November 2010 release that's been out for about a week ... ...
|2967||Multiway branches in Perl - the given and when syntax|
If you want to perform a multiple alternative branch in Perl, the traditional way has been to use if, a series of elsif (note the spelling!) checks, and a final else if you want to add a default or otherwise condition [example]. Until recent versions, there was no switch statement or equivalent. That's ...
|2815||switch and case, or given and when in Perl|
There's a lot of well established Perl code running in many places, using versions of the language that have been used for years. But the language should not stand still, and so extra features get added in at each intermediate release level ... and that then gives us the conundrum of what we should provide ...
|2816||Intelligent Matching in Perl|
Is 10 greater than 8?
As a number, yes it is ... but if you're comparing character strings and you would for a book's index, then the character "1" comes before the character "8", so in this context the 10 is earlier than (i.e. less than) 8.
Is 14.0 the same as 14?
As a numeric value, yes it is. ...
|2817||Setting a safety net or fallback value in Perl|
Let's say that you want a Perl variable to contain a result which varies depending in the type and values of data fed in. Easy enough - but you need to think about what value you want it to hold if the inputs don't match any of the acceptable values. And there are then two approaches:
1. You can set ...
|2559||Moving the product forward - ours, and MySQL, Perl, PHP and Python too|
I have just posted a "steady as she goes" message, welcoming the new decade but reassuring our customers that we're carrying on offering very much the same high quality courses, and the same high quality hotel rooms. But things can't stand totally still - they would stagnate, courses would get out ...
|550||2006 - Making business a pleasure|
"Making Business a Pleasure" - a spoken logo for Well House Consultants for 2006.
Whether you're attending a course, staying as a guest at Well House Manor, working for us, or simply visiting our web site, we want you to enjoy the experience.
We don't know exactly what 2006 will bring, but we have ...
|1721||Perl 6 - When will we have a production release?|
The "Perl 6" project was announced some years back now, with the philosophy of "right rather than rushed" and the comment "you'll have it for Christmas, but we won't tell you which Christmas".
It's in the nature of an Open Source - community - development that the development strands will be in the ...
|89||When will Perl 6 be available|
OK - I have been asked this question so MANY times and ... up it came again this morning in a conference session presented by one of the developers and attended by the originator ;-)
"THERE IS NO OFFICIAL ANSWER"
Best current estimate - a year from now to a Beta release - that's October 2005
A further ...
|1417||What software version do we teach?|
To go with the very latest - even if the customers don't have it in common use yet, or to stay with older and well loved versions even though there is a new model out? A thorny question and one I'm addressing at the moment for the 2008 brochure. I write ...
"""With a few notable exceptions, Open ...
|1215||An update on Perl - where is it going?|
I need to update myself from time to time; web sites, magazine, books, delegates, technical friends and customer requests are all part of the equation; the final part is attending the - occasional and strategically chosen - high level conference or teaching session given by the specialists - the people ...
|995||Ruby's case - no break|
It has always struck me that switch statements in languages like C, PHP, Tcl and Java are very longwinded and clumsy, with a need for blocks and blocks, and every case having to end with a break (or equivalent) to stop multiple cases being run via a drop-through. I can understand why they were written ...
|582||DWIM and AWWO|
"Do what I mean". One of the new buzzwords for Perl 6.
I first heard the new term "DWIM" mentioned some three or four years ago and it's a noble target. And I thought of it again last night as I was looking through hotel reviews and considering how we'll react to customer comments - indeed how we ...
|113||A Parallel for Perl 6|
Perl 6 is still sufficiently far ahead for me to need to know the general direction in which it's headed, so that its future use can be planned for, but it's too early to be actually trying to do any more with it in the general training arena. I've been pointed (thank you, Caitlinn) to an article by ...
Examples from our training material
PicturesPerl 5 to Perl 6 - easy migration
Moving easily from Perl 5 to Perl 6
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
Conditionals and loops.
for and loop.
Rules and grammar.
Elements with a rule.
Concluding rules and grammar.
Under the bonnet.
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.