Thread Irgendeine zahl in array (36 answers)
Opened by conray at 2010-04-29 16:56

bianca
 2010-04-29 17:25
#136547 #136547
User since
2009-09-13
7016 Artikel
BenutzerIn

user image
2010-04-29T15:15:21 conray
als standalone script ohne getopt-long

Dann vielleicht dieses?
Code (perl): (dl )
1
2
3
4
5
6
7
#!/usr/bin/perl -W
use strict;
use warnings;
@ARGV = ('sonne','wolke5','45');
my $inhalt = '';
foreach (@ARGV){if ($_ =~ /^(\d+)$/){$inhalt = $1; last}}
print $inhalt;

Edit: Zitat eingefügt
Last edited: 2010-04-29 17:29:28 +0200 (CEST)
10 print "Hallo"
20 goto 10

View full thread Irgendeine zahl in array