Perl's original designer was Larry Wall (Larry Wall), which was published on December 18, 1987. Perl borrows the features of C, sed, awk, shell scripting, and many other programming languages. Larry Wall Published version 1.0 of the Perl scripting
Function Name
Pack
Call syntax
Formatstr = pack (packformat, list );
Explanation
Converts a list or array to a simple variable in the format used by programming languages such as the
Pack and unpack are not really easy to see in normal programs, but if you use PHP from a long time ago to generate Excel you will know. The head of his Excel is the pack.
Recently, when I tried to interact with C, I used this thing again, so I had
refer to a set of function pack,unpack before looking at the following example. Any language with socket operation has a function dedicated to the package, PHP is no exception of course this set of functions is not just a package.Here's a quick
Pack and unpack are not really easy to see in normal programs, but if you use PHP from a long time ago to generate Excel you will know. The head of his Excel is the pack.Recently, when I tried to interact with C, I used this thing again, so I had to
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
PHP read-write binary files can use the pack and unpack functions.
Today to deal with a problem with a binary file, so need to use, specifically to understand the use of the pack, unpack usage similar to this.
Simply put, the pack function is to
Process processing functions
1. Process Start functionFunction name EvalCall Syntax eval (string)The commentary considers a string as a Perl statement execution.When executed correctly, the system variable $@ is an empty string, and if there is an
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
This article describes how to use pack to process binary files in php. For more information, see
This article describes how to use pack to process binary files in php. For more information, see
The pack and unpack functions can be used to
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.