Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

Using DateTime together with Template::Toolkit

by Corion (Patriarch)
on Feb 28, 2005 at 21:45 UTC ( [id://435201]=perlquestion: print w/replies, xml ) Need Help??

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
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://435201]
Approved by blokhead
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others cooling their heels in the Monastery: (5)
As of 2024-04-24 11:20 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found