File: loops.nqp

package info (click to toggle)
nqp 0.1~2012.01-5
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 7,084 kB
  • sloc: ansic: 13,897; perl: 7,954; asm: 2,748; makefile: 946; sh: 584
file content (8 lines) | stat: -rw-r--r-- 99 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
#!/usr/bin/nqp
# Example of a while loop

my $i := 0;
while $i < 10 {
    say("i=$i");
    $i++;
}