Perl中常见符号意思.docxVIP

  • 3
  • 0
  • 约2.03千字
  • 约 2页
  • 2021-11-08 发布于江苏
  • 举报
Perl中常见操作 注释: 单行: #print 多行:=pod …. =cut 查询perl相关: Perldoc perlvar($a,”$.$.,.$) Perldoc perfunc(s…or)t Perldoc per查l看 perldoc文章列表 Perldoc–q 正则表达式 Perldoc–f函数名 Perldoc module_name查看模块Perldoc–v 变量名 查看变量 Perldoc perlo查p看操作符 查看模块相关函数: Perl–d –e 0 Use module::submod S module::submod 测试程序运行时间: 1.Unix下:Time perl5 perl_program 2.程序内添加:$end_time = time();$elapsed_time = $^T - $end_time; print $elapsed_time; 3.per程l 序内使用benchmark模块: use benchmark; timestamp1 = new benchm{arCko;de};timesamp2 = new benchmark; time_run = timediff(timestamp2 - timesamp1); 符号: = Spaceship operat太or空, 船操作符:三向的比较数字操作符。$a=$b

文档评论(0)

1亿VIP精品文档

相关文档