The hotel is spartan and the staff unfriendly. The Wifi didn't work and the support company was informative about the problems, but passing the buck on to others and not able to actually fix the issues for many hours. The restaurant had unset / unwiped tables all over, with food smeared on the menus ....
Tcl's lsort command lets you sort a list - and that can be a list of the keys of an array. You can't sort the array, but once you have the list of keys you can sort that and use it to iterate through the array in any order that you like.
As everything (except an array) is a string in Tcl, when you ....
In Tcl, variables are "scoped" to the procedure in which they're used. That's a sensible default, since you want to be able to write main applications without the risk of interfering with variables within your procs.
A global command in a proc allows you to refer to a variable in the main code fro ....
I was writing some string match examples in Tcl yesterday - and had the need to explicitly match square brackets within my string. But I couldn't just write the square brackets into the match string ...
• The square bracket first needed protection from the Tcl parser before it even got to th ....
Should you use append, lappend or even concat to add to variable in Tcl?
append puts one string directly on the end of another, without adding any extra characters beyond those in the incoming variables.
lappend treats the target string as a list, and will usually add an extra space on the end of ....
In Tcl, the use of square brackets tells the interpreter to "do this first" whereas curly braces are a request to defer execution of a block - perhaps suppressing it completely as in the action on an if statement.
So the if statement's action will NEVER be written in square brackets - [ ] - as t ....
It's that time of year once again when an early start means scraping ice off the car, and a start in the dark and perhaps the fog. But living at 51 degrees north gives us the variety of seasons and the dampness that causes the fog also causes the whole country to be so green, as you have seen in y ....
A comment the other day reminded me just how powerful picture frames are - as shown in these pictures of Wiltshire. All offset by the photographic composition. Select individual images to enlarge them! ....
I haven't a clue who the happy couple are ... but we came across the wedding party when out yesterday - at the Old Mill, Harnham, Salisbury.
A beautiful sunny day, and it was one of those occasions where a couple who are, perhaps, the most private of individuals normally are more than happy to be ....
If you're handling a huge amount of data (gigabytes!) in a Perl program, memory won't allow you to slurp it all into a list and you'll traverse the data with a loop from file or from database. And because of the sheer volume of data, it may take a while to process. During such proessing, you may w ....