#!/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
;
}
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment