WibbleWobbleWah : iterate

home :: about :: gallery :: linux :: links :: other :: recent changes :: contact
#!/usr/bin/perl -w strict

@array = ("one", "two", "three", "four", "five", "six", "seven");
while (@array){
    $comp = $array[0];
    foreach $element (@array){
        print "$comp$element\n";
    }
shift (@array);
}
Powered by 1.1.6.1
Page was generated in 0.0446 seconds