SoFunction
Updated on 2025-04-14

Perl ASCII Character Determination

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!
  • Perl
  • ASCII
  • Character judgment

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 it
    2014-05-05
  • Perl ASCII Character Determination

    Perl ASCII Character Determination
    2008-12-12
  • Perl 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-03
  • 5 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-09
  • Introduction 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 it
    2013-03-03
  • Use 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-02
  • The 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 it
    2013-03-03
  • Random 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-03
  • Perl 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-10
  • Summary 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

Latest Comments