Error[8]: Undefined offset: 41, File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 121
File: /www/wwwroot/outofmemory.cn/tmp/plugin_ss_superseo_model_superseo.php, Line: 473, decode(

概述perl标示符概览 本文主要对学习perl过程进行记载,方便后期学习 #!/usr/bin/perl# This is a single line commentprint "Hello, world\n";=begin comment注释块,以=开始, 以=cut结束This is all part of multiline comment.You can use as many

perl标示符概览

本文主要对学习perl过程进行记载,方便后期学习

#!/usr/bin/perl# This is a single line commentprint "Hello,world\n";=begin comment注释块,以=开始, 以=cut结束This is all part of multiline comment.You can use as many lines as you likeThese comments will be ignored by the compiler until the next =cut is encountered.=cut


1.双引号能解释当中引用的变量,单引号不会打印出变量值

2.\为escape特殊符号

3.perl标示符标示变量,方法名,类名,模块名和其他对象。perl标示符用$,@,%后接一个多多哥字符,下划线以及数字(0-9)


perl变量

perl为宽松类型语言,大致有三种类型1. 标量 $ 2. 数组@ 3 Hashes %

数字分为有符号整型态以及双精度浮点数,另外还有字符串,同时要注意字符串中的backslash的特殊字符,列表如下所示意

nn [+++]
Escape sequence Meaning
\ Backslash
\' Single quote
\" Double quote
\a Alert or bell
\b Backspace
\f Form Feed
\n Newline
\r Carriage return
\t Horizontal tab
\v Vertical tab
Creates Octal formatted numbers \xnn
Creates HexIDeciamal formatted numbers \cX
Control characters,x may be any character \u
Force next character to uppercase \l
Force next character to lowercase \U
Force all following characters to uppercase \L
Force all following characters to lowercase \Q
Backslash all following non-alphanumeric characters \E
End \U,\L,or \Q
总结

以上是内存溢出为你收集整理的perl 学习陆续记载全部内容,希望文章能够帮你解决perl 学习陆续记载所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

)
File: /www/wwwroot/outofmemory.cn/tmp/route_read.php, Line: 126, InsideLink()
File: /www/wwwroot/outofmemory.cn/tmp/index.inc.php, Line: 166, include(/www/wwwroot/outofmemory.cn/tmp/route_read.php)
File: /www/wwwroot/outofmemory.cn/index.php, Line: 30, include(/www/wwwroot/outofmemory.cn/tmp/index.inc.php)
perl 学习陆续记载_语言综合_内存溢出

perl 学习陆续记载

perl 学习陆续记载,第1张

概述perl标示符概览 本文主要对学习perl过程进行记载,方便后期学习 #!/usr/bin/perl# This is a single line commentprint "Hello, world\n";=begin comment注释块,以=开始, 以=cut结束This is all part of multiline comment.You can use as many

perl标示符概览

本文主要对学习perl过程进行记载,方便后期学习

#!/usr/bin/perl# This is a single line commentprint "Hello,world\n";=begin comment注释块,以=开始, 以=cut结束This is all part of multiline comment.You can use as many lines as you likeThese comments will be ignored by the compiler until the next =cut is encountered.=cut


1.双引号能解释当中引用的变量,单引号不会打印出变量值

2.\为escape特殊符号

3.perl标示符标示变量,方法名,类名,模块名和其他对象。perl标示符用$,@,%后接一个多多哥字符,下划线以及数字(0-9)


perl变量

perl为宽松类型语言,大致有三种类型1. 标量 $ 2. 数组@ 3 Hashes %

数字分为有符号整型态以及双精度浮点数,另外还有字符串,同时要注意字符串中的backslash的特殊字符,列表如下所示意

nn
Escape sequence Meaning
\ Backslash
\' Single quote
\" Double quote
\a Alert or bell
\b Backspace
\f Form Feed
\n Newline
\r Carriage return
\t Horizontal tab
\v Vertical tab
Creates Octal formatted numbers \xnn
Creates HexIDeciamal formatted numbers \cX
Control characters,x may be any character \u
Force next character to uppercase \l
Force next character to lowercase \U
Force all following characters to uppercase \L
Force all following characters to lowercase \Q
Backslash all following non-alphanumeric characters \E
End \U,\L,or \Q
总结

以上是内存溢出为你收集整理的perl 学习陆续记载全部内容,希望文章能够帮你解决perl 学习陆续记载所遇到的程序开发问题。

如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。

欢迎分享,转载请注明来源:内存溢出

原文地址: http://outofmemory.cn/langs/1277711.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-06-09
下一篇 2022-06-09

发表评论

登录后才能评论

评论列表(0条)

保存