Aquariophile: Die Antwort!

Beitrag lesen

hi

Möglichkeiten wird es mehr geben
ich löse das mit REGEXP

#!/usr/bin/perl

print "Content-type: text/html\n\n";

$foo="2";

if ($foo=~m/[\d]+/) { print "$foo ist eine ganze Zahl!<br>\n"; }
else { print "$foo ist KEINE ganze Zahl!<br>\n"; }

LG
Aquariophile