当前位置: 首页 > news >正文

perl notes【1】

文章目录

  • starting with Perl
  • references

starting with Perl

  1. the first program with Perl which simply output to the screen “你好,世界” as follows.
#!/usr/bin/perl
use v5.40.2;
use strict;
use warnings;print "hello,world\n";

through the perl command following the program name running in the terminal of OS

perl learn1.pl
  1. the Perl programming language was designed to achieve the common task specially as text treatment which is its original aim, and through the growth of Perl ,some facilities such as web development ,system administration, , network programming, GUI development, and so on.
  2. the anything within double quotations will keep intact to output. for example:
 #!/usr/bin/perl
use v5.40.2;
use strict;
use warnings;print"Hello, world";

the output result will be as follows.

Hello,world
  1. the variable in Perl has dynamic type formed such as $var_name which include the $ symbol immediately behind the variable name $var_name.
#!/usr/bin/perl
use v5.40.2;
use strict;
use warnings;my $x=11;
my $y=111;
print $x+$y;

the output will be 122

references

  1. https://www.perl.org/
http://www.dtcms.com/a/325799.html

相关文章:

  • 云原生环境Prometheus企业级监控
  • 【Node.js从 0 到 1:入门实战与项目驱动】1.3 Node.js 的应用场景(附案例与代码实现)
  • 论文阅读:Aircraft Trajectory Prediction Model Based on Improved GRU Structure
  • 《开源标准推动Linux驱动生态繁荣》
  • 实现分页功能【jQuery】
  • GDB调试 core dump 文件与栈溢出分析
  • 《Python入门:从零到Hello World的极简指南》
  • 板子 7.20--8.11
  • Spring Boot 参数校验 Validation 入门
  • 华为云计算的行业趋势:迈向智能、融合与绿色的未来
  • 【工控】线扫相机小结 第六篇
  • 用vscode 里docker显示不出有容器和镜像 ?
  • 通用 maven 私服 settings.xml 多源配置文件(多个仓库优先级配置)
  • SQL179 每个6/7级用户活跃情况
  • 十一、Linux Shell脚本:函数与模块化
  • 逃离城市与喧嚣,拥抱新的生活方式
  • 开博尔雷电5数据线:120Gbps“闪电传输”,以Intel硬核基因从容优化数字生活
  • 【SpringBoot】持久层 sql 注入问题
  • C/C++练习面试题
  • PyTorch基础(使用Numpy实现机器学习)
  • PyTorch基础(使用Tensor及Antograd实现机器学习)
  • OCSSA-VMD-Transformer轴承故障诊断,特征提取+编码器!
  • cs的搭建和使用
  • 力扣-153.寻找旋转排序数组中的最小值
  • Kubernetes-核心概念
  • 2438. 二的幂数组中查询范围内的乘积
  • flutter入门
  • 从 Kotlin ViewModel 到 Flutter:完整迁移指南与状态管理实践
  • Flutter Dialog、BottomSheet
  • Python调用C/C++函数库的多种方法与实践指南