Perl ASCII Character Determination
Updated: December 17, 2008 01:21:18 Author:
Perl ASCII Character Determination
It mainly depends on the value of the ASCII code.
$str =~ m/[^\0-\127]/
$str =~ m/[^\x0-\x7f]/
Pay attention to the role of backslashes, and do not miss escape characters!
$str =~ m/[^\0-\127]/
$str =~ m/[^\x0-\x7f]/
Pay attention to the role of backslashes, and do not miss escape characters!
Related Articles
Sharing code instances of Perl traversing directories and using Linux commands to analyze logs
This article mainly introduces the code sharing of Perl traversing the directory and using Linux commands to analyze logs. Friends who need it can refer to it2014-05-05Perl ASCII Character Determination
Perl ASCII Character Determination2008-12-12Perl script code to remove duplicate content (repeat lines + array duplicate fields)
Perl small script to remove duplicate content. Friends who need it can refer to it, including duplicate lines and duplicate fields in the data group.2013-03-035 common errors in perl
PHP has been used for a long time, and has used python and ruby. I haven't touched the classic scripting language before. Now I'm chewing textbooks like a primary school student.2008-09-09Introduction to the usage methods of srand() and time in perl
This article mainly introduces the use of srand and time functions in perl. Friends who need it can refer to it2013-03-03Use scripts to automatically clear symbolic links of missing link files in specified folders
This article mainly introduces the use of scripts to automatically clear symbolic links of missing link files in designated folders. This article introduces you very detailed and has certain reference value. Friends who need it can refer to it.2020-02-02The script code for comparing two files implemented by perl and filtering data
Perl scripts that compare two files and filter data involve hashing applications and changes in perl programming style. Friends in need can refer to it2013-03-03Random simulation program code for implementing biological mutations with perl
A random simulation program of biological mutation written by perl. Friends who need it can refer to it.2013-03-03Perl Chinese processing skills
Perl's processing of Chinese (encode, decode) Recently, I encountered the problem of garbled code when dealing with Chinese. I Googled it and found the following article. I suddenly realized!2008-10-10Summary of usage and usage examples of Perl Sort function
This article mainly introduces the summary and use examples of Perl Sort function usage. Friends who need it can refer to it.2014-05-05