perl
陆沙
诚以待己,惜物爱人
展开
-
perl-basic-数据类型&引用
我觉得这一系列的标题应该是:PERL,从入门到放弃USE IT OR U WILL LOSE IT参考资料:https://qntm.org/files/perl/perl.html在线perl编译器:https://www.tutorialspoint.com/execute_perl_online.phpuse strict;use warning...原创 2017-04-24 18:44:00 · 88 阅读 · 0 评论 -
perl-basic-分支&循环
ifelsifshorter if: if+condition放在句子尾部。use strict;use warnings;my $word = "antidisestablishmentarianism";# get the length of a scalarmy $strlen = length $word;if($str...原创 2017-04-26 15:41:00 · 69 阅读 · 0 评论 -
perl-basic-数组操作
RT。。。直接看代码my @stack = ("Fred", "Eileen", "Denise", "Charlie");# remove at tailpop @stack;print @stack;# add to tailpush @stack, "Bob", "Alice";print @stack;# remove at head...原创 2017-04-27 10:02:00 · 54 阅读 · 0 评论