in reply to non numeric data

First off you are not doing an apples to apples comparison in your conditional. Secondly you are trying to do pattern matching in a dubious fashion. Check out the following:

$ cat torres09.pl #!/usr/bin/perl -w use strict; while(my $line=<DATA>){ chomp $line; if ( $line =~ m/^\d+$/){ printf "%s\n",$line; } } exit(0); __END__ 0123 0444 A123 $ perl torres09.pl 0123 0444


Peter L. Berghold -- Unix Professional
Peter -at- Berghold -dot- Net; AOL IM redcowdawg Yahoo IM: blue_cowdawg