Thread map und array (6 answers)
Opened by bianca at 2010-07-05 19:04

bianca
 2010-07-05 19:16
#139503 #139503
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
2010-07-05T17:13:29 kristian
grep ist dein freund

Jau, manchmal braucht man einen Holzfäller für den Wald :)

Danke Dir

Lösung:
Code (perl): (dl )
1
2
3
4
5
6
7
#!/usr/bin/perl -w
use strict;
use warnings;
use diagnostics;

my @inhalt = (10,20,undef,40);
print "Und:\n" . join ("\n",grep {defined $_} @inhalt) . "\n";
10 print "Hallo"
20 goto 10

View full thread map und array