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

topeg
 2010-04-30 02:01
#136573 #136573
User since
2006-07-10
2611 Artikel
BenutzerIn

user image
Also will man wirklich auf jedwede für perl gültige Zahl testen, muss man das wohl so machen:
Code (perl): (dl )
1
2
if($number=~m#^[+-]?[\d_]*\.?[\d_]+(?:e[+-]?[\d_]+)?$#)
{ print "ist Zahl"; }

Soweit ich weiß, erkennt das alles, was perl auch als Zahl erkennt.

View full thread Irgendeine zahl in array