Search titles on "The Horse's Mouth"

Here are the entries you selected - page 134:

"When do I use a $, when do I use an @, and when do I use a % ?" That is a frequently asked question on a Perl course, where a delegate had dabbled with a bit of Perl ahead of time.
You use @ if you're referring to the whole of a list - in other words a complete collection. If you're a chemist, yo ....

Money's useful stuff.
Before money, transactions were undertake on a barter system; if I wanted a loaf of bread I might exchange it for a fish. If I was wanting to book passage on tthe stagecoach from the George in Melksham to London, I would have to take ia bushel of apples into my local travel ....

Sometimes, examples written during a course are throw-aways ... but at other times they become a useful addition to our resources. On a private private Perl course that I was running yesterday, and continues today and Monday, I found myself writing a useful piece that shows examples of lots of ways ....

All the languages that we teach have a for loop or the equivalent, which is a clean way of repeating a block of code with a rising or falling index number. It's used in many circumstances - for example in iterating through the months of the year (for m goes from 1 to 12) of in stepping through all ....

In Lua, everything that's a collection is held in a table. During the Lua Course I have been giving this week, I set up a whole series of tables, object-like, to hold details of each station on the British main rail network. As well as data, the table holds code / code references, and by adding dif ....

Virtual World game programming involves moving many characters - both player controlled and automatic - in parallel. The movements of each character depend - to a greater or lesser extent - on the prior movements of the character, and of the other charcaters and the resultant position and condition ....

There's not much difference between lists and strings in Tcl. In fact a list is just a string in a particular format, and if you split a string that contains just letters and spaces into a "list" you may not change anything AT ALL. Which means that if you make a coding error you may not spot it u ....

Yesterday ... more to do in Weymouth. I'll probably be there again for the next two Sundays, and certainly not running out of things to see and do. The Rodwell Trail is the path of the old railway from Weymouth via Wyke Regis to Fortuneswell and Easton. Dominic, Sion and myself took the walk t ....

If I were to commute to Swindon for a day's work from Melksham, I would much prefer to travel by train from my home town of Melksham. It's kinder on the environment, and it's kinder on my blood pressure (I can relax on the train but should not relax at the wheel), and it's kinder to others on the ....

Our web site includes over 4000 (I couldn't believe that figure either when I looked it up) source code, configuration file and data file examples. And today, following an idea from a delegate on last weeks' C++ course, I have improved the display of them on Internet Explorer with a more friendly la ....