摘要: Perl:正则中问号的四周用途:1.字面意义的问号 2. 量词 3. 表示非贪心的修饰符 4.用以表示不具有记忆功能的圆括号 非贪心:在量词后面加?即可 阅读全文
posted @ 2019-07-03 16:03 books2read 阅读(450) 评论(0) 推荐(0)
摘要: 要把下面文件的内容改了, Program name: graniteAuthor: Gilbert BatesCompany: RockSoftDepartment: R&DPhone: +1 503 555-0095Date: Tues March 9, 2004Version: 2.1Size: 阅读全文
posted @ 2019-07-03 15:08 books2read 阅读(1032) 评论(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 books2read 阅读(156) 评论(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 books2read 阅读(212) 评论(0) 推荐(0)
摘要: Perl:只是把“^”作为匹配的单字:只是匹配每一行的开头 $lines =~ s/^/file_4_ex_ch7.txt: /gm; 阅读全文
posted @ 2019-07-03 11:17 books2read 阅读(317) 评论(0) 推荐(0)
Total Visits
AmazingCounters.com