Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options

Using HTML::Template's query method

by tomhukins (Curate)
on Mar 09, 2002 at 20:20 UTC ( #150608=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download

  1. or download this
        # Derive the template's filename from all characters in the
        # requested URI
            # Write some code to generate a list of users on the site and
            # set some template parameters
  2. or download this
    if ($template->query(name => 'temperature' or $template->query(name =>
    + 'cloud_cover') {
       # The code to find out what the weather is like goes here
  3. or download this
    my %param= map($_ => 1) $template->query();
    if (exists $param{'temperature'} or exists $param{'cloud_cover'}) {
        # The weather code goes here

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://150608]
[davido]: And remember; time is hard. :) As soon as you think, I've got this, you'll discover that time is harder than that. :)
[1nickt]: TCLion are you parsing the dates with DateTime or another tool?
[1nickt]: I note DateTime::Format:: Flexible, announced immediately below this box in the CPAN feed
[Corion]: 1nickt: That one sounds sensible as it will tell you when it found an error
[1nickt]: Throws on error, I believe
[1nickt]: But should handle month as number or word

How do I use this? | Other CB clients
Other Users?
Others having an uproarious good time at the Monastery: (14)
As of 2017-03-23 14:45 GMT
Find Nodes?
    Voting Booth?
    Should Pluto Get Its Planethood Back?

    Results (287 votes). Check out past polls.