摘要: 要把下面文件的内容改了, Program name: graniteAuthor: Gilbert BatesCompany: RockSoftDepartment: R&DPhone: +1 503 555-0095Date: Tues March 9, 2004Version: 2.1Size: 阅读全文
posted @ 2019-07-03 15:08 jimy1 阅读(1009) 评论(0) 推荐(0) 编辑
摘要: vi. To input the ^M character, press Ctrl-v , and then press Enter or return . In vim, use :set ff=unix to convert to Unix; use :set ff=dos to convert 阅读全文
posted @ 2019-07-03 14:34 jimy1 阅读(149) 评论(0) 推荐(0) 编辑
摘要: 89 open FILE, "< file_4_ex_ch7.txt" 90 or die "cannot open file: $!"; 91 my $lines = join '', <FILE>; 92 print $lines."\n"; 93 $lines =~ s/^/file_4_ex 阅读全文
posted @ 2019-07-03 11:18 jimy1 阅读(198) 评论(0) 推荐(0) 编辑
摘要: Perl:只是把“^”作为匹配的单字:只是匹配每一行的开头 $lines =~ s/^/file_4_ex_ch7.txt: /gm; 阅读全文
posted @ 2019-07-03 11:17 jimy1 阅读(300) 评论(0) 推荐(0) 编辑
摘要: 48 print @globbing."\n"; 输出: 3 阅读全文
posted @ 2019-07-02 16:04 jimy1 阅读(164) 评论(0) 推荐(0) 编辑
摘要: -c, –continue 接着下载没下载完的文件 -r, –recursive 递归下载 -np, –no-parent 不要追溯到父目录 -k, –convert-links 转换非相对链接为相对链接 -L, –relative 仅仅跟踪相对链接 -p, –page-requisites 下载显 阅读全文
posted @ 2019-07-02 14:15 jimy1 阅读(1157) 评论(0) 推荐(0) 编辑
摘要: 正则表达式中 /s 可以帮助“.”匹配所有的字符,包括换行,从而实现【\d\D】的功能 阅读全文
posted @ 2019-07-02 11:22 jimy1 阅读(486) 评论(0) 推荐(0) 编辑
摘要: 123 $_ = "beforematcha? fter"; 124 if(/\b\w+a\b/){ 125 print "matched: <$`><$&><$'>|\n"; 126 } if(/a\b/) 这样的模式匹配也行,\b是单词边界锚点,即以a结尾的单词都可以匹配到 阅读全文
posted @ 2019-07-01 16:31 jimy1 阅读(465) 评论(0) 推荐(0) 编辑
摘要: 6月10日,由首都经济贸易大学国际经济管理学院组织的“计量经济学术前沿研讨会”在博远楼三号报告厅举办。此次研讨会汇集海内外知名学者,校长付志峰出席活动并致辞。 付志峰在致辞向远道而来的国内外专家学者表示欢迎。他讲到,首都经济贸易大学高度重视科学研究在高校办学中的地位,作为学校科学研究的重要平台,国际 阅读全文
posted @ 2019-07-01 13:37 jimy1 阅读(428) 评论(0) 推荐(0) 编辑
摘要: print '$`'."\n";print '$&'."\n";print $'."\n"; 输出: $`$& 而直接输出($`)的话就是变量值,即相符段落的前置字符会存到这里。输出‘$`’ 就变成标量值了 阅读全文
posted @ 2019-07-01 13:36 jimy1 阅读(419) 评论(0) 推荐(0) 编辑
Total Visits
AmazingCounters.com