Acme-Test-Buffy
view release on metacpan or search on metacpan
lib/Acme/Test/Buffy.pm view on Meta::CPAN
This module simply exports one testing function that tests if a string
is the same as "Buffy" (case sensitive.)
=cut
# here's where we define the subroutine "is_buffy" that will be
# exported. Note the prototype that does the right thing. More
# can be found out about prototypes in the 'perlsub' perldoc.
# This one simply says "one scalar argument and possibly another"
sub is_buffy($;$)
{
# simply call the other subroutine. There's no reason why this
# couldn't be done here, I just want to show how to call other
# subroutines in this class. This supplied a default test
# description
_do_buffy_test(shift(), shift() || "is 'Buffy'");
}
# this is a second subroutine that's used to demonstrate how you
# should deal with calling subroutines.
( run in 0.232 second using v1.01-cache-2.11-cpan-cba739cd03b )