#!/bin/nitro

geeky, silly, deep analytic blogging and pointless!!!

Sunday, December 23, 2007

Perl loops

Here are some quicky perl loops

for(my $i=0; $i<$limit; $i++) {
print $i;
}

while($i<$limit) {
print "$limit\n";
}

for $i (@array) {
print "$i\n";
}

until($i > 100) {
print $i;
}
Posted by HA at 11:53 AM
Labels: programming

No comments:

Post a Comment

Newer Post Older Post Home
Subscribe to: Post Comments (Atom)

Labels

  • comics
  • latex
  • linux
  • programming

Search This Blog

Blog Archive

  • ►  2015 (1)
    • ►  June (1)
  • ►  2012 (1)
    • ►  November (1)
  • ►  2011 (1)
    • ►  January (1)
  • ►  2010 (3)
    • ►  October (1)
    • ►  January (2)
  • ►  2009 (7)
    • ►  November (1)
    • ►  October (2)
    • ►  April (1)
    • ►  February (2)
    • ►  January (1)
  • ►  2008 (17)
    • ►  October (1)
    • ►  July (4)
    • ►  June (1)
    • ►  May (2)
    • ►  January (9)
  • ▼  2007 (14)
    • ▼  December (14)
      • Happy New Year
      • Find images of certain size and copy them to some ...
      • Renaming or changing extension of multiple files a...
      • Simple Command Line Arguments in BASH
      • Revoming Empty Directories
      • Listing directories only
      • Bash loops
      • Dilbert... :)
      • What is the effect of introvert CS geeks on the de...
      • Perl loops
      • NetworkManager things
      • Turning off IPv6 in ubuntu for faster life
      • Self Esteem
      • why ByeWorld
Powered By Blogger

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments
Awesome Inc. theme. Powered by Blogger.