(<-) Resources
Signals and the kill function (->)
Advanced slides
- Signals and the kill function
- Catch Ctrl-C
- Catch signals
- Exercise: Catch ctrl-c and ask continue or terminate?
- Solution: Catch ctrl-c and ask
- Always use strict and warnings
- Avoid warnings
- Turn off warnings selectively and in a small scope
- Catch and log warnings
- splain and use diagnostics
- Fatal warnings
- Logging Exceptions
- Always open files in the new way
- grep
- map
- Create a hash from an array using map
- Array slices
- Array slices on the fly
- Hash slices
- Hash slices in assignment
- splice
- LIST and SCALAR context
- wantarray
- wantarray example
- Unique values
- Unique values - improved
- Unique values using grep
- Uniq with List::MoreUtils
- Slow sorting
- Speed up sorting
- Schwartzian transformation
- Compilation phases: BEGIN, CHECK, INIT, END
- AUTOLOAD
- Static variable
- Closures
- Exercise: create counter
- Solution: create counter
- Saved variable: local
- autodie
- Modern::Perl
- Perl::Critic
- Perl::Tidy
- caller
- Log::Dispatch
- Log::Log4perl easy
- Exercise: Log::Dispatch
- Solution Log::Dispatch