Code Library
Home Submit Free Hosting Link To Us Contacts

CGI Remove a range of ANSI characters

CGI Remove a range of ANSI characters CGI CGI Remove a range of ANSI characters Download (.zip)



my $newstring="^&()E~,<  >./?d&*))&*+_)(*&^!12345%$#@";
my $output="";

foreach $c (split(//,$newstring)){
        $ac=unpack("C",$c);
        if($ac>65 and $ac<122){
                $output=$output.$c;
        }
}

print "$output = $output";






Tatet