Compared with Perl, Perl is still relatively small. It is quite convenient to watch videos when getting started, just like watching movies. I have read almost every episode of Superor. I hope you can take a closer look.
Note: You need to write more during learning. You can only understand that only 5% of your work is yours. If you do all the exercises, 30% of your work will be yours. If you can write your
, there are spaces between the array, can be distinguished, the hash is invalid, no content, it shows the%hash.Print: When output to a file, the file handle is in front, the middle is a space (not a comma), followed by the outputKeywords: q (), QQ (), QW (), qx{}Q (): Enclose the content in single quotation marksQQ (): Enclose the content in double quotation marksQW (): A sequence of spaces separated by single quotation marks to assemble an array, shielding the scalar inside # the two are equiva
In some cases, there is an already ordered array, if you want to get a number in the order of the array, using the traversal method will be slower, as follows is a quick get position of the function, will return: In this array, how many values are smaller than the given value.#!/usr/bin/env Perl UseStrict; Usewarnings;my @array=(1,2,2,3,4,5,6,7,8,9,Ten);my $value=Shift;@array=Sort{$a$b}@array;my $percent=fi
people into maintaining their legacy perl scripts.
But what does it do? I know a bunch of flaws in ruby, but I will still choose ruby. Only ruby's design works normally in these cases... I am using php for O M, and I am not doing anything. Php + shell various cli and various daemon. The only bad thing is that there is no open source software. In addition, B cannot keep up with py. It is difficult to be proficient.
I think you can select a suitable
pass an array or a hash class.
Array:
Copy Code code as follows:
My @testArray = (1, 3, 2);
#In Sub Sub Processarraybyreference ($) {
my $arrayref = shift;
My @array = @ $arrayref;
#...
}
#In Sub Processarray:sub processarraybyvalue ($) {
my @array = @_;
#...
}
Processarraybyvalue (@testArray);Processarraybyreference (\ @testArray);
HA series:
Copy Code code as follows:
Sub Printhash ($) {
My%hash =%{shift ()};
For my $k
Domestic PHP development framework myqee quick start tutorial, myqee quick start tutorial
I. environment.
My environment is the flagship version of win7 32bit. xampp1.7.4 (php version 1.8.x is too high, I personally think php 5.3X is more practical) + the latest version of mq. The focus is on configuring virtual machin
KnockoutJs quick start tutorial and knockoutjs quick start tutorial
I. Introduction
Previously, Bootstrap has been introduced in this series of articles. For details, refer to this article: Bootstrap getting started tutorial. Due to the recent project, the frontend is implem
Let's take a look at the two main functions of the POSIX-style regular expression:
Ereg function: (Regular expression matching)
Format: int ereg (string pattern, string string [, array regs])
Note: the Preg_match () function that uses Perl-compatible regular expression syntax is usually a faster alternative than ereg (). (Generally speaking or using Preg_match (), better le ~ ~)
Finds substrings in a string that match the pattern of a given regular
The comparison between POSIX and Perl-compatible regular expressions (preg_match, preg_replace ,. First, let's take a look at the POSIX regular expression's two main functions: ereg function :( regular expression matching) format: intereg (stringpattern, stringstring [, arraylt ;? Phpif (first, let's look at the two main functions of POSIX-style regular expressions:
Ereg function: (regular expression matching)
Format: int ereg (string pattern, strin
Summary of the Android quick start tutorial and the android quick start tutorial
Starting from the end of June March to June May 15, Xiao Wu became an online Lecturer at the invitation of CSDN College and recorded the first course about getting started with Android. Recording This course from the very beginning is ver
# Perl concise tutorial#1. perl uses # as a single line comment# Multi-line comments are enclosed by pod = cut as follows: multi-line comments= PodMultiline comment= Cut#1. Variables# There are only three variables in perl#1. Common variables (scalar)#2. Array variables (list)#3. hash variable (hash table)# Declaration
Smarty Half-hour quick start tutorial, Smarty get started quickly
This article describes a quick-start approach to Smarty, which allows readers to quickly master the use of smarty in half an hour. Share to everyone for your reference. The implementation method is as follows:
First, the Smarty programming part:
In the Smarty template Design section I simply put S
Overview and tutorial of UltimateAndroid quick development framework (also a set of Android quick development tutorials) and android development tutorials
UltimateAndroid is a set of excellent Android open-source libraries integrated into a complete Android rapid development framework.
Github address: https://github.com/cymcsg/UltimateAndroid
Currently, the fram
Overview and tutorial of UltimateAndroid quick development framework (also a set of Android quick development tutorials)
UltimateAndroid is a set of excellent Android open-source libraries integrated into a complete Android rapid development framework.
Currently, the framework mainly includes View Injection, ORM, asynchronous network requests and image loading,
[Java JNI quick learning tutorial] and Java JNI quick learning
1. Introduction to JNI
JNI is the abbreviation of Java Native Interface, which is a Java Local Interface.
Problem Source: because it is difficult to compile underlying applications in Java, it is difficult to be competent in some Java programs with high real-time requirements (the real-time requireme
Gradle tutorial description Chapter 1 Web applications-Quick Start and gradle Quick Start
This chapter is an ongoing work
This chapter describes Gradle support for Web applications. Gradle provides two plug-ins for Web applications: War plug-ins and Jetty plug-ins.
The War plugin extends the Java Plugin to build your project WAR file.
The Jetty plugin extends th
The Python quick tutorial is complete. I wrote a quick tutorial on Python over the past two years, and it finally took shape. This series of articles includes Python basics, standard libraries, and Django frameworks. The previous and later articles include the most important Python
PHP Quick Start tutorial. PHP is a server scripting language used to create dynamic web pages. Like ASP and ColdFusion, users can use PHP and HTML to write WEB pages. when visitors browse this page, the service PHP is a server scripting language used to create dynamic WEB pages. Like ASP and ColdFusion, users can use PHP and HTML to write WEB pages. when a visitor browses this page, the server first process
I took notes after reading instructor Xiao Bu's "SQLite Quick Start video tutorial ".
Lecture 1
What is SQLite?Why?How to get it? How to install?How to manage it?How to Use Perl to access SQLite data;How to use C or C ++;SQL features not supported by SQLite;
Self-contained, no server, Zero Configuration, support for transactions.
SQLite databases have only one
Python quick tutorial and python tutorial
There is a quick python tutorial written by someone on the Internet, which is very good. It is much better than reading books. Click the link below
Http://www.douban.com/group/topic/30008503/Python Basics
Python basics 01 Hello Wor
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.