Perl Overview
Perl was first developed by Larry Wall and is a "glue" language, for example, converting the output of the previous program into the input of the next program. The first version of Perl was released in December 18, 1987 and has been
All numbers have the same format internally in prel. In fact the Perl use double-precision floating-point value to store numbers.
Creating charaters by code point: CHR (), and ord () metheds.
E.g.
$alef = chr(0x05df) ;$code_point = ord('d') ;
In
Process processing functions
1. Process Start functionFunction name EvalCall Syntax eval (string)The commentary considers a string as a Perl statement execution.When executed correctly, the system variable $@ is an empty string, and if there is an
Perl Common function set 2
I. Process processing functions1. Process startup FunctionFunction Name evalCall the syntax eval_r (string)The description regards string as a Perl statement execution.After the command is correctly executed, the
Transferred from: superdebug.blog.chinaunix.netReplaceReplace Foo in all C programs with bar and old files back to. bakPerl-p-i.bak-e ' s/\bfoo\b/bar/g ' *.cVery powerful features, especially refactoring in large programs. I remember it was only
Introduction to the Perl language instructions for a scalar scalar constant numeric string number and string conversion scalar variable Print output result comparison operator get user input undef value scalar context two list array list arrays note
I. Process processing functions
1. Process startup Function
Function Name eval
Call the syntax eval (string)
Describe the stringPerlStatement execution.
After the command is correctly executed, the system variable $ @ is an empty string. If an error
You provide a number of Linux open proxy methods, generally used in Python and other languages, some servers may not be installed, but Perl can be said to be the standard Linux language, to give everyone a Perl language socket agent, the code is
#!/usr/bin/eperl-w# filename:crc-16.pl## Copyright Axxeo GmbH# Licensed under the Apache License, Version 2.0 (the "License");# You are not a use of this file except in compliance with the License.# Obtain a copy of the License at##
#!/usr/bin/perl-w Sub npoint{My $CodeStr = $_[0]; Print $CodeStr. $/; my $CodeLen = 32; My $CodeSpace = $CodeLen-length ($CODESTR); if ($CodeSpace >= 1) {$CodeStr. = CHR) x $CodeSpace; } My $NewCode = 1; My @
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.