Thread Can't "last" outside a loop block at ..... (7 answers)
Opened by esskar at 2008-05-18 23:21

moritz
 2008-05-19 00:48
#109889 #109889
User since
2007-05-11
923 Artikel
HausmeisterIn
[Homepage]
user image
Ich weiss nicht ob ich das schreiben darf ohne aufgehängt zu werden...

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
#!/usr/bin/perl
use strict;
use warnings;
my $count = 10;
do {
    print "$count\n";
    $count--;
    goto END_OF_LOOP if $count == 3;
}
while($count > 0);
END_OF_LOOP:
print "$count\n";

View full thread Can't "last" outside a loop block at .....