Writing Perl Modules for CPAN.pdf

(3531 KB) Pobierz
untitled
Writing Perl Modules
SAM TREGAR
for CPAN
674778277.001.png
Writing Perl Modules for CPAN
Copyright ©2002 by Sam Tregar
All rights reserved. No part of this work may be reproduced or transmitted in any form or by any
means, electronic or mechanical, including photocopying, recording, or by any information storage
or retrieval system, without the prior written permission of the copyright owner and the publisher.
ISBN (pbk): 1-59059-018-X
Printed and bound in the United States of America 12345678910
Trademarked names may appear in this book. Rather than use a trademark symbol with every
occurrence of a trademarked name, we use the names only in an editorial fashion and to the
benefit of the trademark owner, with no intention of infringement of the trademark.
Technical Reviewers: Jesse Erlbaum and Neil Watkiss
Editorial Directors: Dan Appleman, Gary Cornell, Jason Gilmore, Simon Hayes, Karen Watterson,
John Zukowski
Managing Editor and Production Editor: Grace Wong
Project Managers: Erin Mulligan, Alexa Stuart
Copy Editor: Ami Knox
Proofreader: Brendan Sanchez
Compositor: Susan Glinert
Indexer: Valerie Perry
Cover Designer: Kurt Krames
Manufacturing Manager: Tom Debolski
Marketing Manager: Stephanie Rodriguez
Distributed to the book trade in the United States by Springer-Verlag New York, Inc., 175 Fifth
Avenue, New York, NY, 10010 and outside the United States by Springer-Verlag GmbH & Co. KG,
Tiergartenstr. 17, 69112 Heidelberg, Germany.
In the United States, phone 1-800-SPRINGER, email orders@springer-ny.com, or visit
http://www.springer-ny.com .
Outside the United States, fax +49 6221 345229, email orders@springer.de , or visit
http://www.springer.de .
For information on translations, please contact Apress directly at 2560 Ninth Street, Suite 219,
Berkeley, CA 94710. Phone 510-549-5930, fax: 510-549-5939, email info@apress.com , or visit
http://www.apress.com .
The information in this book is distributed on an “as is” basis, without warranty. Although every
precaution has been taken in the preparation of this work, neither the author nor Apress shall
have any liability to any person or entity with respect to any loss or damage caused or alleged to
be caused directly or indirectly by the information contained in this work.
The source code for this book is available to readers at http://www.apress.com in the Downloads
section. You will need to answer questions pertaining to this book in order to successfully
download the code.
In memory of Luke and to Kristen who introduced us
Contents at a Glance
About the Author ................................................................................................. xi
About the Technical Reviewers ................................................................ xiii
Acknowledgments ...................................................................................................xv
Introduction ...................................................................................................... xvii
Chapter 1 CPAN ............................................................................................... 1
Chapter 2 Perl Module Basics ............................................................... 21
Chapter 3 Module Design and Implementation ................................ 65
Chapter 4 CPAN Module Distributions ............................................... 95
Chapter 5 Submitting Your Module to CPAN ................................... 129
Chapter 6 Module Maintenance ............................................................. 139
Chapter 7 Great CPAN Modules ............................................................. 165
Chapter 8 Programming Perl in C ...................................................... 175
Chapter 9 Writing C Modules with XS ............................................. 205
Chapter 10 Writing C Modules with Inline::C .............................. 237
Chapter 11 CGI Application Modules for CPAN .............................. 253
Index ...................................................................................................................... 273
v
674778277.002.png
Zgłoś jeśli naruszono regulamin