Thread sub und for (1..@_) (4 answers)
Opened by toby at 2006-06-17 11:41

esskar
 2006-06-17 12:20
#67427 #67427
User since
2003-08-04
7321 Artikel
ModeratorIn

user image
was auch geht
Code: (dl )
1
2
3
4
5
6
7
8
9
10
#!/usr/bin/perl

use strict;
use warnings;

my $i=5;
&test($i);
sub test{
print 'rechnen in der for-schleife: ',$_+$_,"\n" for(1..shift);
}

View full thread sub und for (1..@_)