[EMAIL PROTECTED] wrote:
> 
> Is there a simple way to reject any string that has extended characters in
> it? In other words, only accept the 88 (I think it's 88) regular keyboard
> characters and numbers. I can't find a simple way to do this.

if ( $string =~ /[^[:print:]]/ ) {
    print "This string has invalid characters in it.\n";
    }


John
-- 
use Perl;
program
fulfillment

-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to