当前位置: 首页 > 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.lryc.cn/news/617759.html

相关文章:

  • 【linux】企业级WEB应用服务器tomcat
  • 达梦数据库慢SQL日志收集和分析
  • 1.Apollo Planning 模块总结
  • 打破内网枷锁!TRAE SOLO + cpolar 让AI开发告别“孤岛困境”
  • 2025.8.6 图论(1)Solution
  • CI/CD渗透测试靶场
  • JavaEE初阶2.0
  • 基于MongoDB/HBase的知识共享平台的设计与实现
  • HBase BlockCache:LRU Cache
  • SQL179 每个6/7级用户活跃情况
  • 数学建模——灰色预测(GM11)
  • window显示驱动开发—创建多平面覆盖资源
  • 微服务架构下的精准测试与环境复制实践指南
  • PTE之路--04文
  • 使用Pytest进行接口自动化测试(三)
  • 集团型企业如何统一管控子公司权限?
  • 机器学习中数据集的划分难点及实现
  • 计算机网络:1、OSI参考模型和TCP/IP模型
  • scikit-learn/sklearn学习|岭回归解读
  • 高并发场景下分布式ID生成方案对比与实践指南
  • Mini-Omni: Language Models Can Hear, Talk While Thinking in Streaming
  • Mining of Real-world Hypergraphs part1-2 逐字翻译解读
  • react中父子数据流动和事件互相调用(和vue做比较)
  • 剑桥大学最新研究:基于大语言模型(LLM)的分子动力学模拟框架,是MD的GPT时刻还是概念包装?
  • 机器翻译:Bahdanau注意力和Luong注意力详解
  • HarmonyOS AI辅助编程工具(CodeGenie)概述
  • 鸿蒙flutter项目接入极光推送
  • golang包管理工具中 GOPATH 与 Go Modules 的区别总结
  • 新人如何简化学习Vue3文件
  • while循环结合列表或字典