Writing on the screen

February 11, 2009 · Posted in Perl · View Comments

Well, one more post in the series "Programming perl", which will probably become a weekly, every Wednesday with a brand new post for you. Try to be as regular social gatherings of rio.pm , already a few years occur every second Thursday of the month. But back to the mini-tutorial ... Today we'll talk about how to print things on the screen using perl.

Read more

$ @% - What does this mean?!

February 4, 2009 · Posted in Perl · View Comments

First of all, I would like to thank the invitation and Blaber introduction so exaggerated ... :)

Well, I'm here to talk about perl, so let's start.

Variables such as the name implies, they are used to store variable values. In perl there are three basic types of variables (pay attention, I said basic). These are:

  • Scalar
  • Array
  • Hash

They serve w / store values. Each of these "types" are represented with a symbol. When you refer to a scalar value, you must use the symbol "$" to array "@" and hash "%".

Let's see this in practice:

Read more