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
Perl considers truth values to be self-evident (self-evident), which means that the truth of any thing can be computed. Perl defines truth values in a practical way, that is, the truth of an entity depends on the type of the entity. Perl is always
Reverse Connection code:
1. #!/usr/bin/perl
2. #usage:
3. #nc-vv-l-P PORT (default 1988) on your local system First,then
4. #Perl $ Remote IP (default 127.0.0.1) Remote_port (default 1988)
5. #Type ' exit ' to exit or press Enter to gain shell when
Perl has the best text-processing capabilities. This is what everyone knows. In Perl itself, there is a small function that no other software has, the Perl format. It is equivalent to simple command-line reports and chart output. This needs to be
Perl has long been a popular text-processing tool for its inherent support for regular expressions. In this introductory article, we'll show you how to use regular expressions in your own programs to achieve more powerful text search and
Functions (subroutines):The function brackets in Perl can be written or not, unless the implications are not written.Customizing the subroutine:Sub function-name{Expressions}The return value of the subroutine:All Perl subroutines have return values,
Help (Dit.keys)---to see a description of the keys function in the dictionary typeAbout PrintPython---String can be followed without adding \ nthe line wrappingThe per---does not wrap automatically, and must be added \ nAbout executing SQL
1. variable name DefinitionPerl's common variables, hash variables, and array variables start with $, %, and @, respectively, and all PHP variables start with $, which seems to be more concise. In addition, the PHP hash array itself is already
I. subaccountProgramReferences:
In Perl, you can not only create references to scalar variables, array variables, and hash variables, but also create references to subprograms. References to subprograms are similar to function pointers in C/C ++;
Chomp can remove a line break from the end of a string. This is basically all the functions it can accomplish, as shown in the following example:$ Text = "a line of text/N"; # It can also be input by Chomp ($ text); # Remove the line break (/N ).It
Perl "glue" can combine code from various applications or languages. Perl can write common scripts, CGI Modules can be used to write web applications, and DBI can be used to access various databases. In addition, Perl can stick applications of
1. array concatenation function: splice
Used to insert an element or sublist to a list or array. You can also delete an element or sublist from an array or list, or replace an element or sublist in an array or list; the prototype is as follows:
@
I. Hash Variables
A hash variable is also called an associated array. Like an ordinary array, you can use a subscript to access the data elements. The difference is that the subscript of a hash variable can not only be a non-negative integer, it can
I. subprogram concept:
A subroutine is a function. It is a piece of code that executes the separation of special tasks. Using a subroutine can improve the reusability of the Code. From the perspective of usage, subprograms can be divided into four
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
"Our"," The name is limited to a certain range ", in fact, is to clearly declare a" global variable ", although defined in a module or function, can be accessed outside, if it has already been declared, use "our" again to indicate that the global
I often need to extract a large amount of web page data (more than 1500 pages). I have tried many methods and can achieve this, but the efficiency is not too high.
At the beginning, lwp: simple (get) is used to download and extract data in sequence.
Previously, I did not pay much attention to my blog. I felt distressed when I lost my blog. Now I am paying attention to it and decided to regularly back up SQL statements. Write a script as follows:
Copy codeThe Code is as follows :#! /Usr/bin/perl
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.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service