21e Subj : Question To : David Drummond From : tony summerfelt Date : Wed Sep 15 2004 11:42 am # On Wed, Sep 15/04 at 09:39 PM, David Drummond wrote to PERL experts: DD> Can anyone suggest a simple one line that determines if a variable DD> contains alpha/numeric data, or a straight numeric value? $scalar="123test" $scalar !~ /\D/ ? print "scalar only digits" : print "string has other chars" ..t .... telnet://ventedspleen.dyndns.org --- GoldED/spleen 3.0.1+ * Origin: ventedspleen.dyndns.org (1:249/100) . 0