Thread erstes Zeichen - prüfen (15 answers)
Opened by jan999 at 2010-01-04 15:43

MatthiasW
 2010-01-04 15:46
#129995 #129995
User since
2008-01-27
367 Artikel
BenutzerIn
[default_avatar]
TIMTOWTDI:
Code (perl): (dl )
1
2
3
say "wuff" if "nanana" =~ /^n/;
# oder:
&blub if substr( "nanana", 0, 1 ) eq "n";

MfG
perl -E'*==*",s;;%ENV=~m,..$,,$&+42;e,$==f;$"++for+ab..an;@"=qw,u t,,print+chr;sub f{split}say"@{=} me"'

View full thread erstes Zeichen - prüfen