Help for this page

Select Code to Download


  1. or download this
    use strict;
    use DateTime;
    ...
    # process input template, substituting variables
    $template->process($input, { calendar => DateTime->now })
        or die $template->error();
    
  2. or download this
    undef error - Cannot compare a datetime to a regular scalar (2005-02-2
    +8T21:51:58 / Template::Stash=HASH(0x2048a14)) at c:/perl/site/5.8.5/l
    +ib/Template/Stash.pm line 582