Absrtact: Ms never provides SQL Server for Linux, so don't try to install SQL Server on a Linux system, but you can connect to the SQL Server database of Windows systems via ODBC;
A description of the test environment and Linux connection SQL
Basic usage
#初始化%h is an empty array%h={};#用数组初始化%h for A=>1,b=>2%h= (' A ', 1, ' B ', 2);#意义同上 is just another, more figurative way of writing. %h= (' A ' =>1, ' B ' =>2);#如果key是字符串, you can omit the quotation marks. The following line is the same
1, the Named grouping format is (? ), the reverse reference is \K
2. The result of a named grouping match exists in the variable%+ variable, taking the named grouping value, $+{grp name.
3, the reverse reference can also be used
The cgi|perl|server|web| program DNS server can be either a master server or a secondary server. Master server is also called as the primary server, is the final source of the decision domain name. The master server is also the source of the zone
By default, the m//operator attempts to match the text in the specified pattern and $_. For example: Find the string in the text entered by the user exit (the i-modifier after the second backslash is the pattern match is case insensitive). If exit
Thread: A scan that uses multithreading to handle large amounts of data and encounters a possible deadlock in read-write files.The life cycle of a Perl thread 1. Use the Create () method of the threads package: Use threads;Sub Say_hello
There are many ways to read the last line of a file in Perl, such as(1) Read the file into the array and take the last elementOpen (FILE, "file.txt") or Die "$!"; My @arr =;; Close File;my $last = $arr [$ #arr];# $last is the last line of content.(2)
Source:Http://www.cnblogs.com/itech/archive/2012/08/07/2627267.htmlCode:You need to explicitly define variables and initialize them. such as Optionx.If you do not define a variable and explicitly initialize it, and you do not specify an option on
Source: http://www.veryhuo.com/a/view/38338.htmlToday you want to compile the Perl script as an EXE to run independently from the Perl interpreter. Can generate a Perl PE file, which is presented on the Perl website.Perl scripts compiled into EXE
1?? ? Because in the new version GCC divides the standard library in the C99 into the libc and LIBM two parts, LIBM contains some mathematical libraries, etc., if you want to use LIBM, you must add the-LM optionAfter extracting configure, and then
Perl reads and writes XML: The main is to write always forget how to engage ... first-read XML 1) XML instance " linux US mac US " windows US 2) Code Use file::basename; Use xml::simple; Use Data::D umper; My $xmlfile = DirName ($). "\\
Reprinted: Http://www.ibm.com/developerworks/cn/linux/sdk/perl/culture-8/Spreadsheet::WriteExcel and Spreadsheet:: ParseexcelIn 2000, Takanori Kawai and John McNamara wrote the Spreadsheet::WriteExcel modules and Spreadsheet::ParseExcel posted them
Perl contains some predefined file handles. For example, standard input stdin and standard outputStdout, And standard errorsStderr. The standard error stderr is an additional output path. How can we understand this sentence? Let's look at an example.
1 line PerlSpeaking of Perl today, there is only one line of Perl Program .Various Programming Language Perl is famous for its abnormal ancient spirit. For example, I often write Perl programs that I don't understand.For example, although the
We often use a program in Linux to add parameters. Now let's take a look at the functions related to control parameters in Perl. getopt. in Linux, there are two types of parameters. one is-help and the other is-H. that is, the difference between-and.
1. Open a file:
$ Openfileflag = open (filehandle, "pattern identifier FILENAME ");
If the file is successfully opened, the true value (non-null) is returned. If the file fails to be opened, the false value (null value) is returned. The default
1. Set up the Perl runtime environment. ActivePerl can be used in windows. After installation, check whether the path contains the perl directory, or if the environment is successfully set up by hitting Perl-H in the console. 2. Compile a Perl
Chapter 2: List and array list
(): Empty list, false when used as a condition judgment
Two non-empty list examples: ("hello", "world", "\ n") (123,456,789)
Different types of elements can be contained in the same list.
The list in Perl is only
Thread Overview
A thread is a single execution process. It is the smallest control unit in the execution process of all programs.The minimum task unit to schedule. There are both connections and completely different relations between threads and
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.