Subj : Question To : tony summerfelt From : David Drummond Date : Thu Sep 16 2004 05:05 pm G'day tony 15 Sep 04 10:42, tony summerfelt wrote to David Drummond: ts> # On Wed, Sep 15/04 at 09:39 PM, David Drummond wrote to PERL ts> experts: DD>> Can anyone suggest a simple one line that determines if a variable DD>> contains alpha/numeric data, or a straight numeric value? ts> $scalar="123test" ts> $scalar !~ /\D/ ? print "scalar only digits" : print "string has ts> other chars" Thanks - simple when one knows how :-) Regards, David --- Msged/LNX TE 06 (pre) * Origin: Here. (3:640/305) .