Posts Tagged ‘ arrays ’

Perl Loop Basics

November 12, 2008
By Killian

For loop The below will print “Hello!” 10 times: for ($i = 0; $i < 10 ; $i++){ print "Hello!\n"; } Output: Hello! Foreach loop For iterating through an array it can be handy to use a foreach loop. In the example below the foreach loop will access each variables in the array and...
Read more »

Tags: , , , ,
Posted in perl | No Comments »

Perl Array Basics

November 12, 2008
By Killian

Initialising or clearing an array To create a new array it is as simple as declaring it as shown below. This method can also be used to clear an existing array, though you will have to drop the my. my @array = (); Creating an array with predefined elements To create a new array...
Read more »

Tags: , ,
Posted in perl | No Comments »

Calendar

    September 2010
    M T W T F S S
    « Jun    
     12345
    6789101112
    13141516171819
    20212223242526
    27282930