| Next: Yawns::Preferences | Previous: Yawns::Poll | [Table of Contents] |
Yawns::Polls - A module for working with polls.
#!/usr/bin/perl -w
use Yawns::Polls;
use strict;
my $polls = Yawns::Polls->new();
$polls->add( question => "Does this work?",
author => "Steve",
answers => [ "one", "two", "three"] );
my $current = $polls->getCurrentPoll();
This module contains code for working with polls, finding the current one and adding a new one.
See Yawns::Poll for working with a particular poll.
Create a new instance of this object.
Add a new poll, which will go live immediately.
Return the ID of the current poll.
Delete an existing poll.
Return all the old polls in use.
Clean any cached content we might have.