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
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
Introduction:
Continuing with my backup articles (part two of my Amanda series coming soon ...), I thought I wowould tell you about how I do my remote backups. the program I use is rdiff-backup, with a Perl script to sort out e-mail Notification and
Perl Code implementation:
#!/usr/bin/perl use
strict;
Use warnings;
Use diagnostics;
Open (LOG, ' > ', ' log_file ') or die "Can ' t redirect stdout: $!";
Open (CMD, ' ls | ');
Open (STDERR, ' >& ', STDOUT) or die "Can ' t redirect STDERR: $!";
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
1, the Linux system generally with PerlCan run the program in:/usr/bin/perl
2. Perl Test Procedure
Copy Code code as follows:
#!/usr/bin/perl-w
Use warnings;
Print "Hello, Perl works! ";
Named test.pl
Under the terminal,
1. linux generally comes with perlYou can run the program in:/usr/bin/perl
2. perl Testing Program
Copy codeThe Code is as follows :#! /Usr/bin/perl-w
Use warnings;
Print "Hello, Perl works! ";
Name it test. pl.
Locate the directory in the terminal.
In networking, BSD socket programming is the most basic. But when perl is getting started, the biggest headache is how to start and how to Step by step. The best prescription is Example. A complete piece of code that can run (working) is far more
The first time I came into contact with Perl was in February October 2008. At that time, due to project reconstruction, I needed a lot of text operations, so I picked up the Perl language "text operations as my mission. Of course, the famous llama
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.