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
Example:
Copy Code code as follows:
#!/bin/perl
Print "Please input a string and a number by order!\n";
$the _string=<>;
$the _numb=<>;
Print "The result is \ n";
Print "$the _string" x "$the _numb";
Results:The
I. Data Types(Data type):
Perl has four data types: Scalar (variable), Scalar Array (Array), Hash Array (Hash), and References (pointer ), it seems to be rare, but it is more than enough to use it. Especially when writing Perl programs, you do not
one. DataType (data type ):Perl's data types are roughly four: Scalar (variables), Scalar Array (array), hash array (hash), References (pointer), but they seem to be small but more than sufficient. In particular, you can write a Perl program without
Part I Programming Perl 1 Perl Data Types 1.1 Funny Characters
Type
Character
Example is
a name for:
Scalar
$
$cents
An individual value (number or string)
Array
@
@large
Call the Perl subroutine in VCAuthor: Source: ZZ published on: Views: 2691 font size: large medium small
As needed, you need to call the Perl subroutine in VC to process the file. You can run it after reading the Perl instruction document for a long
1. Simple Variables
==============
1. Integer$ X = 123456;Perl stores integer data in floating-point registers. In fact, integer variables are treated as floating-point numbers in Perl, but they are only a special column of floating-point data.The
In file I/O, to read data from a file, the application must first call the operating system function, transfer the file name, and select a path to the file to open the file. This function retrieves a sequence number, namely, the filehandle of a Perl
Common Perl Functions
Command: PrintSyntax: Print filehandle listNote: This filehandle can be seen as a bridge between I (input) and O (output). You can use filehandle to read and write data. stdin indicates the connection from which data is input,
List of common system functions
Command: PrintSyntax: Print Filehandle LISTDescription: This Filehandle can be seen as a bridge between I (INPUT) and O (OUTPUT). You can use FILEHANDLE to read and write data. STDIN indicates the connection from
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.