El Fichero del Módulo

El programa h2xs creó en lib/Parse/Yapp.pm un esqueleto inicial del módulo para nosotros. Estos son sus contenidos:

 1	package Parse::Yard;
 2	use 5.008004;              # Versión mínima de Perl para trabajar
 3	use strict;                # Por defecto = a la de la instalación
 4	use warnings;
 5	require Exporter;
 6	our @ISA = qw(Exporter);
 7	
 8	# Items to export into callers namespace by default. Note: do not export
 9	# names by default without a very good reason. Use EXPORT_OK instead.
10	# Do not simply export all your public functions/methods/constants.
11	
12	# This allows declaration	use Parse::Yard ':all';
13	# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK
14	# will save memory.
15	our %EXPORT_TAGS = ( 'all' => [ qw( ) ] ); 
16	our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } );
17	our @EXPORT = qw( );
18	our $VERSION = '0.01';
19	
20	# Preloaded methods go here.  
21	1;
22	__END__
El marcador __END__ indica el final del código. El esqueleto construído por h2xs también contiene define la estructura de la documentación:
23	# Below is stub documentation for your module. You'd better edit it!
24	
25	=head1 NAME
26	
27	Parse::Yard - Perl extension for blah blah blah
28	
29	=head1 SYNOPSIS
30	
31	  use Parse::Yard;
32	  blah blah blah
33	
34	=head1 DESCRIPTION
35	
36	Stub documentation for Parse::Yard, created by h2xs. It looks like the
37	author of the extension was negligent enough to leave the stub
38	unedited.
39	
40	Blah blah blah.
41	
42	=head2 EXPORT
43	
44	None by default.
45	
46	=head1 SEE ALSO
47	
48	Mention other useful documentation such as the documentation of
49	related modules or operating system documentation (such as man pages
50	in UNIX), or any relevant external documentation such as RFCs or
51	standards.
52	
53	If you have a mailing list set up for your module, mention it here.
54	
55	If you have a web site set up for your module, mention it here.
56	
57	=head1 AUTHOR
58	
59	Lenguajes y Herramientas de Programacion, E<lt>lhp@E<gt>
60	
61	=head1 COPYRIGHT AND LICENSE
62	
63	Copyright (C) 2004 by Lenguajes y Herramientas de Programacion
64	
65	This library is free software; you can redistribute it and/or modify
66	it under the same terms as Perl itself, either Perl version 5.8.4 or,
67	at your option, any later version of Perl 5 you may have available.
68	
69	=cut

Casiano Rodríguez León
Licencia de Creative Commons
Principios de Programación Imperativa, Funcional y Orientada a Objetos Una Introducción en Perl/Una Introducción a Perl
por Casiano Rodríguez León is licensed under a Creative Commons Reconocimiento 3.0 Unported License.

Permissions beyond the scope of this license may be available at http://campusvirtual.ull.es/ocw/course/view.php?id=43.
2012-06-19