Thread $ARGV[0] in @array überprüfen (28 answers)
Opened by Duff at 2007-10-18 18:20

pq
 2007-10-18 21:34
#101053 #101053
User since
2003-08-04
12208 Artikel
Admin1
[Homepage]
user image
GwenDragon+2007-10-18 16:32:07--
Code: (dl )
print grep(/$ARGV[0]/,@arr) ? 'JAAAA' : 'och nee :(';

wobei ich erstmal keine regex verwenden würde:
Code (perl): (dl )
print grep $ARGV[0] eq $_, @arr ? 'JAAAA' : 'och nee :(';
Always code as if the guy who ends up maintaining your code will be a violent psychopath who knows where you live. -- Damian Conway in "Perl Best Practices"
lesen: Wiki:Wie frage ich & perlintro Wiki:brian's Leitfaden für jedes Perl-Problem

View full thread $ARGV[0] in @array überprüfen