Advanced slides


  1. Signals and the kill function
  2. Catch Ctrl-C
  3. Catch signals
  4. Exercise: Catch ctrl-c and ask continue or terminate?
  5. Solution: Catch ctrl-c and ask
  6. Always use strict and warnings
  7. Avoid warnings
  8. Turn off warnings selectively and in a small scope
  9. Catch and log warnings
  10. splain and use diagnostics
  11. Fatal warnings
  12. Logging Exceptions
  13. Always open files in the new way
  14. grep
  15. map
  16. Create a hash from an array using map
  17. Array slices
  18. Array slices on the fly
  19. Hash slices
  20. Hash slices in assignment
  21. splice
  22. LIST and SCALAR context
  23. wantarray
  24. wantarray example
  25. Unique values
  26. Unique values - improved
  27. Unique values using grep
  28. Uniq with List::MoreUtils
  29. Slow sorting
  30. Speed up sorting
  31. Schwartzian transformation
  32. Compilation phases: BEGIN, CHECK, INIT, END
  33. AUTOLOAD
  34. Static variable
  35. Closures
  36. Exercise: create counter
  37. Solution: create counter
  38. Saved variable: local
  39. autodie
  40. Modern::Perl
  41. Perl::Critic
  42. Perl::Tidy
  43. caller
  44. Log::Dispatch
  45. Log::Log4perl easy
  46. Exercise: Log::Dispatch
  47. Solution Log::Dispatch