171℃
31℃
内容介绍:
This book reflects the combined experience of its authors, who have taught Perl at Stonehenge Consulting since 1991. Years of classroom testing and experience helped shape the book's pace and scope, and this edition is packed with exercises that let you practice the concepts while you follow the text.
Topics include:
Perl data & variable types
Subroutines
File operations
Regular expressions
String manipulation (including Unicode)
Lists & sorting
Proces...
Learning Perl, Perl阅读全文
1℃
----------------------
Reproduced statement:
This post is quoted/referred from the following two articles, thanks to the authors:
http://developers.curl.com/userdocs/docs/en/dguide/regular-expressions.html
and
http://www.regular-expressions.info/lookaround.html
Part I:
Summary about Zero-width Expressions
In addition to regular expressions that match characters, there are a class of regular expressions that match certain positions within a string. Since they do not actuall...
Assertion, Linux, Perl, Programme, Regex, Zero-Width阅读全文
6℃
----------------------
Reproduced statement:
All the commands bellow are from "All commands" site, it's an amazing site, welcome to visit it:
http://www.commandlinefu.com/commands/browse
1.
clear screen, keep prompt at eye-level (faster than clear(1), tput cl, etc.)
c() printf "\33[2J"
this leaves the cursor at the bottom of the terminal screen, where your eyes are.
ctrl-l moves it to the top, forcing you to look up.
anticipated question/argument: how is it faster than an ...
Command, Linux, Perl, Programme, Unix阅读全文
3℃
Pls also see my other 2 posts about:
1. The emacs pictures: http://scmbob.org/emacs_manual_pictures.html
2. The vim pictures: http://scmbob.org/vim_mind_mapping.html
Here I list some of very useful technical pictures, you must be like them.
1. Unix history:
2. Following is the login frame of my laptop cygwin:
3. Thinkabout Sed:
4. Perl REGEX:
5-6. Thinkabout Awk:
7. Thinking iptables:
8. Cron:
9. Git structure:
Awk, Crontab, Git, Iptables, Linux, Perl, Programme, Sed, Unix阅读全文
0℃
QQ号 手机号
11235334: 13443253456
11235335: 13443253457
11235336: 13443253458
11235333: 13443253458
11235336: 13443253459
11235334: 13443253452
处理效果为:
[Q号] : 同一Q号的手机号个数: 手机号
如 [11235334] : 2 : 13443253456 13443253452
perl:
# perl -e 'open FH,"<","urfile" or die $!; while(<FH>){ chomp;my($qq,$phone) = split/: /; push @{$hash{$qq}},$phone };while(my($k,$v) = each %hash){ print "$k: ",scalar(@$v),": @$v\n" }'
11235335: 1: 13443253457
11...
Awk, Linux, Perl, Programme阅读全文











谢谢分享
赶紧学习一下,谢谢!
谢谢 希望能下
好東西! 下來試一下。
谢谢你,我的问题已经解决了,
评论啊,你太伟大了
感谢分享,不知道现在还能下载
谢谢博主分享!