Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/perl -w
    package PLCFuncs;
    ...
        print "Totals for $kind\n";
        print Generic_Funcs::calculate_totals($kind), "\n"
    };
    
  2. or download this
    sub get_and_print_totals {
        my ($callback) = @_;
    ...
    
    get_and_print_totals( sub { return "hello total world" });
    get_and_print_totals( sub { return 42+10 });