Deutsch Software often contains a logging functionality. Usually entries one or sometimes multiple lines are appended to a file, written to syslog or to stdout, from where they are redirected into a file. They are telling us something about what the software is doing. Usually we can ignore all of it, but as soon as …
Kategorie-Archive: Perl Programming
Meaningless Whitespace in Textfiles
We use different file formats that are more or less tolerant to certain changes. Most well known is white space in text files. In some programming languages white space (space, newline, carriage return, form feed, tabulator, vertical tab) has no meaning, as long as any whitespace is present. Examples for this are Java, Perl, Lisp …
Loops with unknown nesting depth
We often encounter nested loops, like for (i = 0; i < n; i++) { for (j = 0; j < m; j++) { doSomething(i, j); } } This can be nested to a few more levels without too much pain, as long as we observe that the number of iterations for each level need …
Perl 5 and Perl 6
We have now two Perls. Perl 5, which has been around for more than 20 years just as the „Perl programming language“ and Perl 6, which has been developed for more than a decade and of which now stable versions exist. The fact, that they are both called „Perl“ is a bit misleading. They are …
Swiss Perl Workshop 2017
I have attended the Swiss Perl Workshop. We were a group of about 40 people, one track and some very interesting talks, including by Damian Conway. I gave a regular talk and a lightning talk myself. The content of my talk might go into another Blog post in the future. The Perl programming language is …
Alpine Perl Workshop
On 2016-09-02 and 2016-09-03 I was able to visit the Alpine Perl Workshop. This was a Perl conference with around 50 participants, among them core members of the Perl community. We had mostly one track, so the documented information about the talks that were given is actually quite closely correlated to the list of talks …
Numeric types in Perl
Dealing with numeric types in Perl is not as strait-forward as in other programming languages. We can use „scalars“ out of the box, but then we get floating point numbers, more precisely what is called „double“ in most programming languages. This is kind of ok for trivial programs, but we should make a deliberate choice …
Perl 6
Perl 6 has silently reached its first production ready release on Christmas 2015, called v6c. It will be interesting to explore what this language can do, which features it offers and how it compares to existing relevant and interesting languages like Java, C, Ruby, Perl (5), Clojure, Scala, F#, C++, Python, PHP and others in …
Perl Training in Switzerland
Very soon we will have the opportunity to participate in advanced Perl trainings and even some trainings about presentations. Here are the Details. I found these trainings useful, when I visited them. They are done by Damian Conway, one of the core developers of the Perl programming language. The courses will be held in English. …
How to create ISO Date String
It is a more and more common task that we need to have a date or maybe date with time as String. There are two reasonable ways to do this: * We may want the date formatted in the users Locale, whatever that is. * We want to use a generic date format, that is …