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

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

user image
Leg Dich am besten nochmal hin :)
~ s/gerp/grep/

und dann
Code (perl): (dl )
1
2
3
4
5
6
#!/usr/bin/perl -W
use strict;
use warnings;
@ARGV = ('sonne','wolke5','4');
my $exists = scalar grep { my $x = int $_; "$x" eq $_ } @ARGV; 
print $exists;


Quote
Argument "sonne" isn't numeric in int at test14.pl line 5.
Argument "wolke5" isn't numeric in int at test14.pl line 5.
1


:)
10 print "Hallo"
20 goto 10

View full thread Irgendeine zahl in array