会员
周边
众包
新闻
博问
闪存
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
jimy1
博客园
首页
新随笔
联系
管理
订阅
上一页
1
···
6
7
8
9
10
2019年6月12日
vim要粘贴的话,先set paste,然后粘贴,然后再set nopaste
摘要: 要粘贴的话,先set paste,然后粘贴,然后再set nopaste
阅读全文
posted @ 2019-06-12 17:06 jimy1
阅读(4495)
评论(0)
推荐(0)
编辑
Solaris 默认Shell 修改
摘要: ssh登陆远程的solaris 10,backspace出现乱码。 ssh登陆远程的solaris 10默认Shell不是bash 把solaris10的shell环境改为bash就行 dev13% bash bash-2.03$ perl -vThis is perl, version 4.0
阅读全文
posted @ 2019-06-12 16:41 jimy1
阅读(298)
评论(0)
推荐(0)
编辑
2019年6月11日
关系数组
摘要: 散列的索引值,不是数值,而是 互不相同的任意字符串。 任意的 字符串 ,一个散列里只能有一个名叫Willa的元素 2. 如何命名 散列变量的 名称 $family_name(“宏”) = “李”; 这样可以 说 “宏” 的姓 是 “李”
阅读全文
posted @ 2019-06-11 16:33 jimy1
阅读(313)
评论(0)
推荐(0)
编辑
文件描述符 文件操作 <> open 文件句柄
摘要: #! /usr/bin/perl use strict;use warnings;=head1print "\n test_ \n";if(!open LOG, ">> Z/logfile"){ die "can't create logfile: $!";}print "\n test_ \n";
阅读全文
posted @ 2019-06-11 15:53 jimy1
阅读(271)
评论(0)
推荐(0)
编辑
IO 双引号 输出 输入
摘要: #! /usr/bin/perl use strict;use warnings;print "\n <STDIN>_store_into_an_array_and_then_chomp() \n";my @lines = <STDIN>;chomp(@lines);print "\n Input_
阅读全文
posted @ 2019-06-11 15:52 jimy1
阅读(157)
评论(0)
推荐(0)
编辑
第五章答案
摘要: #! /usr/bin/perl use strict;use warnings;=head1print "\n ch_5_Q1_ \n";#print reverse <>;print "\n _ \n";select STDIN;my @single_quotation = <>;print @
阅读全文
posted @ 2019-06-11 15:51 jimy1
阅读(148)
评论(0)
推荐(0)
编辑
子例程 subroutine
摘要: #! /usr/bin/perluse strict;use warnings;print "\n summation_STDIN_parameter \n";sub total{ my $array_len = @_; my $sum = 0; foreach(0..$array_len){ $s
阅读全文
posted @ 2019-06-11 15:51 jimy1
阅读(250)
评论(0)
推荐(0)
编辑
钻石操作符
摘要: #! /usr/bin/perl use strict;use warnings;=podprint "\n while(defined(\$equal_sign = <>)) \n";my $forwar_slash;while(defined($forwar_slash = <>)){ chom
阅读全文
posted @ 2019-06-11 15:50 jimy1
阅读(241)
评论(0)
推荐(0)
编辑
花括号的使用 printf %${width}s , 否则会 去找 $widths
摘要: 花括号的使用 printf %${width}s , 否则会 去找 $widths 1 #! /usr/bin/perl 2 use strict; 3 use warnings; 4 5 =head1 6 print "\n ch_5_Q1_ \n"; 7 #print reverse <>; 8
阅读全文
posted @ 2019-06-11 15:30 jimy1
阅读(345)
评论(0)
推荐(0)
编辑
print reverse <> 是打印全部的文件内容 ?
摘要: reverse 是倒置 <> 则是 把 @ARGV 参数列表里面的文件都读取出来 ? print <> 就是和 cat 的功能一样了。 脚本语言交流、数据处理 QQ群:6680-19199,欢迎加入,加入时注明 “cnblogs" 或 “script” 或 “脚本” 或 "perl”,谢谢!
阅读全文
posted @ 2019-06-11 13:23 jimy1
阅读(516)
评论(0)
推荐(0)
编辑
上一页
1
···
6
7
8
9
10
公告
Total Visits