background image
<< Where To Start? | Names >>
<< Where To Start? | Names >>
new()
new()
Since Date::ICal is OO, the beginning is when you make an
object.
(white-lie: the beginning is when you load the module)
#!/usr/bin/perl -w
use Test::Simple tests => 2;
use Date::ICal;
my $ical = Date::ICal->new; # make an object
ok( defined $ical ); # check we got something
ok( $ical->isa('Date::ICal') ); # and it's the right class
This produces:
1..2
ok 1
ok 2
This is your first useful test.