Transfer from Forum:
Http://club.topsage.com/thread-2468696-1-1.html
Perl starts to use utf8 encoding internally to represent characters starting from 5.6. That is to say, there should be no problem in processing Chinese characters and other
Reprinted: http://blog.csdn.net/jallin2001/archive/2009/11/13/4808618.aspx
The regular expression character set is often used to extract or exclude Chinese characters from a string. However, this is very troublesome and the effect is not very
Perl has begun to use UTF8 coding internally to represent characters from 5.6, meaning that the processing of Chinese and other language characters should be completely free of problems. We just need to take advantage of the Encode module to give
This task counts the top 500 entries in a week.
Data source: from the Oracle database.
Requirement: generate an Excel file and send an email to the relevant person.
Because it was the first time that I was engaged in such a task (writing scripts on
# Enable the Perl program to support utf8 wide character encoding. If you do not add the following lines to print Chinese characters, the wide character in print warning or error will appear.Use utf8;Binmode (stdin, ': encoding (utf8 )');Binmode
#!/usr/bin/perl-w# program code is simply a simple explanation of the use of parsing web content and matching patterns, the logic is not very strictUse UTF8;Binmode (STDIN, ': Encoding (UTF8) ');Binmode (STDOUT, ': Encoding (UTF8) ');Binmode (STDERR,
Install yum process, install yum-2.6.1-0.yd15.1.noarch.rpm error, need python and other dependent packages
Modify the yum-2.1.11-3.noarch.rpm, install OK; but the runtime prompts an error, it seems to be a python package dependency Error
Xterm or
# get the Web page content using the Get function of the LWP module.Use Lwp::simple;My $doc =get ("http://www.csdn.net");# content can be extracted or otherwise processed after obtaining the content of the webpage# Print out the contents of the
MySQL Learning Note 12: Data backup and RecoveryData backup1. Physical Backup and logical backupPhysical backupPhysical backup is to copy the database data files, configuration files, log files and so on to other paths, this backup speed is
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.