The Perl until loop examples and syntax alvin December 2, 2009 - 1:17pm

Perl until loop FAQ: Can you share some examples of the Perl until loop syntax?

The Perl until loop is similar to the Perl while loop, but essentially does the opposite thing. Where the Perl while operator will run this loop forever:

while ('true')
  # do stuff here

the Perl until loop will never run this loop:

The Ruby ternary operator syntax alvin May 27, 2009 - 4:31pm

Here's a quick example of some Ruby source code, showing how I used Ruby's ternary operator in a method that prints a CSV record for a class I defined:

Perl - how to search a list of numbers with the grep function alvin May 21, 2009 - 6:46pm

In a previous tutorial I demonstrated how you can search a Perl list/array of strings for another string, or a regular expression using Perl's grep function. In this example I'll demonstrate how you can search a list of numbers very easily, also using Perl's grep function.

Perl ‘equals’ FAQ: What is true and false in Perl? alvin October 10, 2008 - 3:47pm

Perl true/false FAQ: What is true in Perl? What is false in Perl?

The Perl programming language is a little unusual in not having true and false boolean operators. Because of this, I can never seem to remember what equates to true and false in Perl, so I decided to create this page.

What is true/false in Perl

In short, the following elements evalue to false in Perl: