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

esskar
 2008-05-18 23:21
#109885 #109885
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/perl

use strict;
use warnings;

my $count = 10;
do
{
        print "$count\n";
        $count--;
        last if $count == 3;
}
while($count > 0);

print "$count\n";


ging das noch nie?

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