Pro Perl Programming

Pro Perl Programming

From Professional to Advanced

Rothwell, William Bo

APress

03/2020

323

Mole

Inglês

9781484256046

Pré-lançamento - envio 15 a 20 dias após a sua edição

Descrição não disponível.
Chapter One Intermediate Regular Expressions1.1 Review: Basic Regular Expressions 1.2 Modifiers 1.3 Getting the Nth occurrence of a match 1.4 Greedy vs. Non-Greedy matches 1.5 Regular Expression variables 1.6 Special characters in regular expressions 1.7 Assertions 1.8 Reading from filehandles using split 1.9 Multiple line matching 1.10 Commenting Regular Expressions 1.11 Alternative Delimiters 1.12 Additional resources 1.13 Lab Exercises Chapter Two Advanced Regular Expressions2.1 Make use of the Smartmatch Operator2.2 Understand Regular Expression precedence2.3 Understand what is *NOT* a Regular Expression atom2.4 Using Regular Expressions in List Context2.5 Match whitespace properly2.6 Use \G2.7 Use the \A, \Z and \z assertions2.8 Avoid capturing 2.9 Avoid the variables $, $& and $' 2.10 Compile your Regular Expressions before using them 2.11 Benchmark your patterns 2.12 Use Regexp::Common 2.13 Flags you should consider always using 2.14 Avoid escapes 2.15 Use the re Pragma 2.16 Understand backtracking Chapter Three Advanced Features3.1 Use my iterator variables with for loops3.2 Utilize loop labels3.3 Avoid using for file matching3.4 Time::HiRes3.5 Contextual::Return3.6 Indirect Filehandles3.7 The three argument technique to the open statement 3.8 Always check the return values of open, close and when printing to a file 3.9 Close filehandles as soon as possible 3.10 Avoid slurping 3.11 Creatively use the do statement3.12 Use the slurp() function3.13 Test for interactivity3.14 Use IO::Prompt3.15 Understand where to find documentation3.16 Understand context3.17 Understand the => operator3.18 Understand subroutine calls3.19 Understand and/or versus &/||3.20 Use Perl::Tidy3.21 Use Perl::Critic3.22 Understand Getopt::Std3.23 Understand Getopt::Long3.24 Alternative commenting technique 3.25 Passing notes within a Perl program 3.26 Use Smart::Comments Chapter Four Advanced Formatted Output4.1 Review: The format statement4.2 Advanced format statement features4.3 printf and sprintf4.4 Using select4.5 The operator4.6 Additional Resources4.7 Lab Exercises Chapter Five Exploring Useful Built-in Variables 5.1 Perl's built-in variables5.2 Variables reference chart 5.3 Use English5.4. Status variables 5.5 Separator variables5.6 The signal handle variable5.7 Version of Perl5.8 Program start time5.9 Additional Resources5.10 Lab Exercises Chapter Six Advanced File Handling6.1 Review: Basic File Handling6.2 Displaying the file position6.3 Moving the file position6.4 Opening files for reading and writing6.5 Making "files" within your script6.6 Locking files6.7 Flushing output buffers6.8 Additional Resources6.9 Lab Exercises Chapter Seven Pragmas 7.1 Perl pragmas7.2 Pragma chart7.3 Review: use strict7.4 Predeclaring subroutines7.5 Predeclaring global variables7.6 Additional Resources7.7 Lab Exercises Chapter Eight Exploring Useful Built-in Modules8.1 Built-in modules8.2 Module table8.3 Cwd8.4 Env8.5 File8.6 Math8.7 Sys8.8 Text8.9 Fatal8.10 Benchmark8.11 Getopt::Std8.12 Getopt::Long8.13 Additional Resources8.14 Lab Exercises Chapter Nine Debugging Tools 9.1 Review: The -w switch9.2 Review: The Perl debugger9.3 Debugger commands9.4 Diagnostics9.5 Carp9.6 Data::Dumper9.7 Additional Resources9.8 Lab Exercises Chapter Ten Perl/TK Basics10.1 Working with Windows10.2 Types of Widgets10.3 Geometry Managers10.4 Creating Widgets10.5 The OO nature of the Tk module10.6 Additional resources10.7 Lab Exercises Chapter Eleven Perl TK Widgets 11.1 Frames11.2 Labels 11.3 Buttons 11.4 Checkbuttons 11.5 Radiobuttons 11.6 Listboxes 11.7 Scrollbars 11.8 Scales 11.9 Entries 11.10 Creating menus11.11 Additional Resources 11.12 Lab Exercises Module Twelve Geometry Managers 12.1 pack options 12.2 The -after and -before option 12.3 The -anchor and -side options12.4 The -fill option 12.5 Padding with pack 12.6 Managing widgets with pack 12.7 Binding 12.8 The focus command 12.9 Additional Resources12.10 Lab Exercises