图书介绍
精通Perl 第2版PDF|Epub|txt|kindle电子书版本网盘下载
![精通Perl 第2版](https://www.shukui.net/cover/12/30942277.jpg)
- (美)福瓦著 著
- 出版社: 南京:东南大学出版社
- ISBN:9787564150020
- 出版时间:2014
- 标注页数:377页
- 文件大小:52MB
- 文件页数:399页
- 主题词:PERL语言-程序设计-英文
PDF下载
下载说明
精通Perl 第2版PDF格式电子书版下载
下载的文件为RAR压缩包。需要使用解压软件进行解压得到PDF格式图书。建议使用BT下载工具Free Download Manager进行下载,简称FDM(免费,没有广告,支持多平台)。本站资源全部打包为BT种子。所以需要使用专业的BT下载软件进行下载。如BitComet qBittorrent uTorrent等BT下载工具。迅雷目前由于本站不是热门资源。不推荐使用!后期资源热门了。安装了迅雷也可以迅雷进行下载!
(文件页数 要大于 标注页数,上中下等多册电子书除外)
注意:本站所有压缩包均有解压码: 点击下载压缩包解压工具
图书目录
1.Advanced Regular Expressions1
Readable Regexes,/x and(?#…)1
Global Matching3
Global Match Anchors5
Recursive Regular Expressions7
Repeating a Subpattern7
Lookarounds18
Lookahead Assertions,(?=PATTERN)and(?!PATTERN)18
Lookbehind Assertions,(?<!PATTERN)and(?<=PATTERN)22
Debugging Regular Expressions25
The-D Switch25
Summary29
Further Reading29
2.Secure Programming Techniques31
Bad Data Can Ruin Your Day31
Taint Checking32
Warnings Instead of Fatal Errors34
Automatic Taint Mode35
mod_perl35
Tainted Data35
Side Effects of Taint Checking36
Untainting Data37
IO::Handle::untaint39
Hash Keys40
Taint::Util41
Choosing Untainted Data with Tainted Data41
Symbolic References42
Defensive Database Programming with DBI45
List Forms of system and exec47
Three-Argument open48
sysopen49
Limit Special Privileges49
Safe Compartments50
Safe Limitations56
A Little Fun56
Summary57
Further Reading58
3.Perl Debuggers61
Before You Waste Too Much Time61
The Best Debugger in the World62
Safely Changing Modules63
Wrapping Subroutines64
The Perl Debugger67
Alternative Debuggers68
Using a Different Debugger with-d68
Devel::ptkdb68
Devel::ebug70
Devel::hdb71
IDE Debuggers72
EPIC72
Komodo72
Summary72
Further Reading73
4.Profiling Perl75
Finding the Culprit75
The General Approach79
Profiling DBI81
Other DBI::Profile Reports85
Making It Even Easier86
Switching Databases87
Devel::NYTProf89
Writing My Own Profiler90
Devel::Line Counter90
Profiling Test Suites91
Devel::Cover91
Summary93
Further Reading93
5.Benchmarking Perl95
Benchmarking Theory95
Benchmarking Time97
Comparing Code100
Don't Turn Off Your Thinking Cap103
Isolating the Environment107
Handling Outliers109
Memory Use111
The perlbench Tool116
Summary118
Further Reading118
6.Cleaning Up Perl121
Good Style121
perltidy122
Deobfuscation124
De-encoding Hidden Source124
Unparsing Code with B::Deparse127
Perl::Critic129
Creating My Own Perl::Critic Policy132
Summary133
Further Reading134
7.Symbol Tables and Typeglobs135
Package and Lexical Variables135
Getting the Package Version137
The Symbol Table139
Typeglobs141
Aliasing144
Filehandle Arguments in Older Code146
Naming Anonymous Subroutines147
The Easy Way148
Summary149
Further Reading150
8.Dynamic Subroutines151
Subroutines as Data151
Creating and Replacing Named Subroutines155
Symbolic References157
Iterating Through Subroutine Lists159
Processing Pipelines161
Self-Referencing Anonymous Subroutines162
Method Lists162
Subroutines as Arguments163
Autoloaded Methods167
Hashes as Objects169
AutoSplit170
Summary171
Further Reading171
9.Modifying and Jury-Rigging Modules173
Choosing the Right Solution173
Sending Patches to the Author173
Local Patches175
Taking Over a Module175
Forking176
Starting Over on My Own176
Replacing Module Parts176
Subclassing179
An ExtUtils::MakeMaker Example181
Other Examples184
Wrapping Subroutines184
Summary186
Further Reading186
10.Configuring Perl Programs187
Things Not to Do187
Code in a Separate File189
Better Ways190
Environment Variables190
Special Environment Variables191
Turning on Extra Output191
Command-Line Switches193
The-s Switch194
Getopt Modules195
Configuration Files200
ConfigReader::Simple200
Config::IniFiles201
Config::Scoped201
Other Configuration Formats202
Scripts with a Different Name202
Interactive and Noninteractive Programs203
perl's Config204
Different Operating Systems205
Summary206
Further Reading206
11.Detecting and Reporting Errors207
Perl Error Basics207
Operating System Errors208
Child Process Errors210
Errors Specific to the Operating System212
Reporting Module Errors213
Separation of Concerns213
Exceptions215
eval216
Multiple Levels of die217
die with a Reference218
Propagating Objects with die220
Clobbering$@222
autodie224
Reporting the Culprit225
Catching Exceptions229
Try::Tiny229
TryCatch231
Polymorphic Return Values232
Summary233
Further Reading233
12.Logging235
Recording Errors and Other Information235
Log4perl236
Subroutine Arguments238
Configuring Log4perl239
Persistent Configuration243
Logging Categories243
Other Log::Log4perl Features245
Summary247
Further Reading247
13.Data Persistence249
Perl-Specific Formats249
pack249
Fixed-Length Records251
Unpacking Binary Formats251
Data::Dumper252
Similar Modules256
Storable258
Freezing Data259
Storable's Security Problem262
Sereal264
DBM Files269
dbmopen270
DBM::Deep270
Perl-Agnostic Formats272
JSON272
YAML274
MessagePack276
Summary277
Further Reading277
14.Working with Pod279
The Pod Format279
Directives279
Encoding281
Body Elements281
Translating Pod281
Pod Translators282
Pod::Perldoc::ToToc283
Pod::Simple285
Subclassing Pod::Simple288
Pod in Your Web Server288
Testing Pod288
Checking Pod289
Pod Coverage289
Hiding and Ignoring Functions291
Summary292
Further Reading292
15.Working with Bits293
Binary Numbers293
Writing in Binary294
Bit Operators295
Unary NOT(~)296
Bitwise AND (&)298
Binary OR(|)299
Exclusive OR(^)300
Left<<and Right>>Shift Operators302
Bit Vectors302
The vec Function304
Bit String Storage306
Storing DNA308
Checking Primes309
Keeping Track of Things311
Summary312
Further Reading312
16.The Magic of Tied Variables313
They Look Like Normal Variables313
At the User Level314
Behind the Curtain315
Scalars316
Tie::Cycle316
Bounded Integers319
Self-Destructing Values320
Arrays321
Reinventing Arrays322
Something a Bit More Realistic325
Hashes330
Filehandles333
Summary335
Further Reading335
17.Modules as Programs337
The main Thing337
Backing Up338
Who's Calling?339
Testing the Program340
Modules as Tests340
Creating a Program Distribution345
Adding to the Script347
Distributing the Programs352
Summary352
Further Reading353
A.Further Reading355
B.brian's Guide to Solving Any Perl Problem359
Index of Perl Modules in This Book366
Index369