Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings;
    ...
    exists $actions{$action} or die "Invalid action: $action";
    my @results = $actions{$action}->($data, $pattern, $substitution);
    print $data, "\n";