You’re free to use these downloads any way that you like. I think they’ll be much useful if you modify them beyond recognition, but if there are a few programs that get the job done without a change, I’m not going to worry about that.
You can download all named programs in one go:
Chapter 1: Introduction
- Signed title page for the PDF. Replace this page in your own PDF.
- The Bundle::MasteringPerl module is everything we mention in the book that’s on CPAN.
Chapter 2: Advanced Regular Expessions
- comma_debug.pl
- correct_foobar.pl
- explain_regex.pl
- fred_and_wilma.pl
- nested_carat_n.pl
- nested_define.pl
- nested_grammar.pl
- nested_grammar_r.pl
- nested_show_matches.pl
- not_perl6.pl
- quotes.pl
- quotes_backreference.pl
- quotes_nested.pl
- quotes_parno.pl
Chapter 3: Secure Programming Techniques
- cat.pl
- check_taint.pl
- perl-untaint.pl
- repl.pl
- safe.pl
- show_file.pl
- tainted_args.pl
- tainted_args_no_path.pl
- tainted_args_shebang.pl
Chapter 5: Profiling Perl
- dbi_number_inserter.pl
- dbi_number_inserter_cached.pl
- dbi_number_inserter_end.pl
- factorial_iterate.pl
- factorial_iterate_bignum_memo.pl
- factorial_recurse.pl
- factorial_recurse_bignum.pl
- factorial_recurse_bignum_memo.pl
Chapter 6: Benchmarking Perl
- benchmark_forking.pl
- benchmark_rc.pl
- glob_opendir.pl
- glob_opendir_dumbbench.pl
- schwartzian_benchmark.pl
- side_effect.pl
- The perlbench utility is on CPAN.
Chapter 7: Cleaning Up Perl
- japh_encoder_decoder_rot13.pl
- japh_encoder_decoder_rot255.pl
- japh_encoder_rot13.pl
- japh_plaintext.pl
- program.067.pl
- retweeter.pl
- yucky
Chapter 8: Symbol Tables And Typeglobs
- alias.pl
- frankenstein.pl
- make_aliases.pl
- make_aliases_no_hash.pl
- make_aliases_no_scalar.pl
- show_empty_foo_vars.pl
- show_foo.pl
- show_foo_vars.pl
- show_main_vars.pl
- show_main_vars_package_stash.pl
- show_names.pl
- show_used_var_types.pl
- typeglob-name-package.pl
Chapter 9: Dynamic Subroutines
Chapter 11: Configuring Perl Programs
- config_ini.pl
- config_scoped.pl
- configreader_simple.pl
- getopt_long_args.pl
- getopt_long_mult.pl
- getopt_std.pl
- getoptions_v.pl
- getopts_std.pl
- perl_s_abc.pl
- perl_s_debug.pl
Chapter 12: Detecting And Reporting Errors
- bal_call.pl
- carp.pl
- chained_die.pl
- chained_die_more_info.pl
- chained_die_propagate.pl
- chanined_die_reference.pl
- die.pl
- die_with_blessed_reference.pl
- die_with_reference.pl
- divide.pl
- exit_with_value.pl
- exit_with_value_call.pl
- local_math.pl
- other_package_croak.pl
- private_croak.pl
- program.112.pl
Chapter 13: Logging
- hierarchical_logging.pl
- log4perl_dbi.pl
- log4perl_easy1.pl
- log4perl_easy2.pl
- log4perl_easy3.pl
- log4perl_runsub.pl
- root_logger.pl
Chapter 14: Lightwieght Data Persistence
- data_dump_reload.pl
- data_dumper.pl
- data_dumper_named.pl
- data_dumper_object.pl
- data_dumper_object_reload.pl
- data_dumper_reload.pl
- data_dumper_reload_do.pl
- dbmopen.pl
- isbn_record.pl
- json_data.pl
- message_pack.pl
- pack.pl
- read_json.pl
- sereal_bad_key.pl
- shallow_copy.pl
- storable_dupe_key.pl
- storable_retrieve.pl
- storable_store.pl
- storable_thaw.pl
- yaml_dump.pl
- yaml_load.pl
Chapter 15: Working with Pod
- The Pod::Perldoc::ToToc module is available on CPAN.
- MasteringPerl-PodModules.tgz