This article describes three things: 1: 2: Environment configuration 3: Operation script content 1: MS has never provided SQLServerforLinux, so do not try to install SQLServer on Linux, however, you can use ODBC to connect to the SQL Server database
File Operations for Perl learning notes
This article mainly introduces the file operations of Perl learning notes. This article provides examples of opening files, reading files, and Writing File Code respectively. For more information, see
Perl'
Open a file using the Open () function
Common methods to open a file are:
Copy codeThe Code is as follows: open (FH, "Or die "Couldn't open $ filename for reading: $! ";
The open () function usually has two parameters. The first is the file handle,
There are too many things on the computer (more than 300 GB space, as well as many things on the mobile hard disk, computer and hard disk are repeated), and I always want to clear it. This kind of active technology is not very high, the physical
In Perl development, it is very likely that some files in different formats, such as XML, PDF, CSV, and RSS files, are different from some binary data formats. Perl applications need to operate on these files to read and write them.
In this case,
The Perl debugger used in this article is the perl interpreter itself. You can enable the debugging function through the-D switch. This article will not cover all Debugging commands, but will explain some of our commonly used Debugging commands,
In order to select a suitable scripting language for learning, I checked a lot about Perl, Python, Ruby, and JavaScript today, but I found that people in various camps are touching their favorite languages, however, it is not controversial that
Sending a script a few days ago is very slow. Using Time can only know the total time, but cannot confirm the reason. We found that devel: nytprof is a very good tool.
If you have the root permission, then:
Perl-mcpan-e Shell> Installjson: Any)>
Although it is recommended that you turn on warnings in every Perl script and module, you do not want users to see a warning from Perl.
On the one hand you want to use using warnings as your safety net in front of the code, on the other hand,
On the networking side, the most basic is BSD socket programming, but often when Perl is getting started in this area, the biggest headache is undoubtedly how to start, how to step by step. The best remedy is example, a complete code that can be run
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 thread1. Use the Create () method of the Threads package: Use threads; Sub Say_hello {
One, SystemPerl can also invoke the Shell's command with system, which, like Awk's system, returns a value that is also the exit state of the command it invokes.
Copy Code code as follows:
[Root@ax3sp2 ~]# Cat aa.pl
#! /usr/bin/perl-
1. Starting from the basics
Unlike Java,perl, you do not need the "main" method as the entry point. To run a simple Perl program is as follows:
Copy Code code as follows:
# comment starts with "#"
# The name is hello.pl
Print
Perl language learning notes 9 Regular Expressions for text processing, perl Language Learning
1. Replacement
S/PATTERN/REPLACE/; # returns the Boolean value of whether the replacement is successful.
You can use capture variables, such as s/(\ w)/$1/
Perl is a very flexible scripting language. There is also a demand scenario for reflection. Reflection is the conversion of a string to the corresponding language object.
(Do not consider the ultimate kill technique such as eval) 1. Reflection as a
Preface
Sometimes there are these requirements:
1. count the number of rows of a file
2. Calculate the number of valid lines of a source code. Exclude empty and comment rows
3. Unify the quantity and number of files in a directory
Many languages
Author: A Hui http: farmerluo. googlecode. how to install comfilescheck_redis.pl: When the script uses the perl Redis database, you must first install this: # perl-MCPAN-eshell # installRediswgethttp: farmerluo. googlecode.
Configure cdperl-5.8.8./Configure-demakemaketestmakeinstall Several Notes: 1-de is the configuration parameter, meaning the default configuration; 2 here there is a step
If you want to use perlto analyze the timeline and exceldata in ora 8.0,
This article only implements compilation, and calling WCF is not successful yet (the server digital certificate is called without authentication !)
1: Install ActivePerl (latest ActivePerl-5.12.2.1203)
Http://www.activestate.com/activeperl/downloads/
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.