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

daily notes[3]

文章目录

  • perl notes
  • references

perl notes

  1. typing perl program_name on the terminal can run a perl program(script) named program_name.
  2. the following set of codes was replaces by use v5.35; at the 5.35 version or more than it.
use strict;
use warnings; 
  1. annotation in perl language is flaged as # immediately before annotated content.
  2. print funtion achieves the ouput task ,for example,print "hello,world".
  3. $ closely followed by variable name illustrates that is a scalar variable such as $x,$y and so on.my keyword is used to declare a variable such as my $x=11;
  4. @ indicates the following variable is array. for example:
my @nums=(11,22,33);
print $nums[0];

by the way,$#nums represent the index of last element in nums array.
7. % used to denote the definition of hash .

my %nums = ("one", 1, "two", 2);
my %fruit_color = (one  => 1,two => 2,
);

get value through the key in hash can use the following code.

$fruit_color{"two"};
  1. the if statement constructs mutiple conditions flow.
if ( condition1 ) {...
} elsif ( condition2 ) {...
} else {...
}

references

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

相关文章:

  • Eigen中Dense 模块简要介绍和实战应用示例(最小二乘拟合直线、协方差矩阵计算和稀疏求解等)
  • 三极管驱动led灯搭配的电阻选取方法
  • 跟随广州AI导游深度探寻广州历史底蕴​
  • 如何做一次AIMD
  • 农田扫描提速37%!基于检测置信度的无人机“智能抽查”路径规划,Coovally一键加速模型落地
  • [OWASP]智能体应用安全保障指南
  • 英伟达显卡驱动怎么更新 详细步骤教程
  • MySQL练习题50题(附带详细教程)
  • Day13_【DataFrame数据组合concat连接】【案例】
  • C5.5:VDB及后面的电路讨论
  • 决策树(2)
  • Yum使用时报错
  • Spring Boot 全局异常处理
  • 快速了解Anaconda系统
  • 08.5【C++ 初阶】实现一个相对完整的日期类--附带源码
  • implement libtime on Windows
  • MyCAT基础概念
  • Python函数总结
  • week2-[一维数组]最大元素
  • 单细胞格式转换 rds 转成 h5ad
  • transformer模型初理解
  • Transformer、BERT、BEiT等模型相关八股及代码【自用】
  • HJ4 字符串分隔
  • 神经网络训练过程详解
  • 电流采样实现方法
  • JavaScript 代码保护与混淆
  • Vue2+Vue3前端开发_Day1
  • 端口映射原理操作详解教程:实现外网访问内网服务,本地路由器端口映射公网ip和软件端口映射域名2种方法
  • Qwen2.5-vl源码解读系列:LLM的Embedding层
  • MySQL常用函数