Wikiversity::Hello - introductory module in Wikiversity Perl training


Wikiversity-Hello documentation Contained in the Wikiversity-Hello distribution.

Index


Code Index:

NAME

Top

Wikiversity::Hello - introductory module in Wikiversity Perl training

SYNOPSIS

Top

  perl -MWikiversity::Hello -e hurrah

DESCRIPTION

Top

Wikiversity::Hello is an introductory module for readers following the tutorial about loading a CPAN module at http://en.wikiversity.org/wiki/Perl_Modules_on_CPAN

Installation of this module is the exercise at the end of that lesson. The module simply provides a function which congratulates the user for successfully installing and running it.

PERL LESSONS AT WIKIVERSITY

Top

Wikiversity is an online educational site of the Wikimedia Foundation, the same organization as Wikipedia. This module is part of the Perl training at Wikiversity. http://en.wikiversity.org/wiki/Topic:Perl

If you conduct Perl training, you may use this in your curriculum. And of course you knew this part was coming - please also help make the training better by adding your experience to it.

SEE ALSO

Top

http://en.wikiversity.org/wiki/Perl_Modules_on_CPAN

http://en.wikiversity.org/wiki/Topic:Perl

AUTHOR

Top

Ian Kluft, <ik-cpan@thunder.sbay.org<gt>

COPYRIGHT AND LICENSE

Top


Wikiversity-Hello documentation Contained in the Wikiversity-Hello distribution.

package Wikiversity::Hello;
# Wikiversity::Hello - introductory module in Wikiversity Perl training
#
# Copyright (C) 2007 by Ian Kluft  http://ian.kluft.com/
#
# This library is free software; you can redistribute it and/or modify
# it under the same terms as Perl itself, either Perl version 5.8.8 or,
# at your option, any later version of Perl 5 you may have available.

use strict;
use warnings;

require Exporter;

our @ISA = qw(Exporter);

# export controls
our %EXPORT_TAGS = ( 'all' => [ qw( ) ] );
our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
our @EXPORT = qw( go );

# version number used by module-building modules
our $VERSION = '0.01';

# congratulate the user for successfully installing and running the module
sub hurrah
{
	print "Congratulations!  You have successfully installed and ran "
		.__PACKAGE__."!\n";
};

1;
__END__