
perl
beitian_china
这个作者很懒,什么都没留下…
展开
-
perl学习记录
1. =~ m/^[0-9]+$/ 用于匹配正则表达式 2. my $celeise = <STDIN>原创 2021-06-04 15:40:47 · 207 阅读 · 0 评论 -
perl读写文件
perl写文件 注意:perl写文件时,必须使用的是 真实完整路径 my $fileName; $fileName = "D:\\13.perlLearn\\test01\\report.txt"; open(my $fh , ">", $fileName) or die "Could not open file report.txt $!"; print $fh "this is my first test, please ignore it,thanks \n"; close $fh原创 2021-06-03 12:07:14 · 1636 阅读 · 0 评论