Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
PerlMonks  

Re: My First Module: LewisCarrolCode.pm

by integral (Hermit)
on Jan 30, 2003 at 06:07 UTC ( [id://231208]=note: print w/replies, xml ) Need Help??


in reply to My First Module: LewisCarrolCode.pm

use CGI::Carp qw(fatalsToBrowser);
One small point is that you shouldn't put CGI::Carp in your module since it may not always be used in a CGI environment. Instead you should use Carp, and replace your dies with calls to croak, which will make the error reporting name lines in the caller's code and not your own, making debugging much easier for the module user.

A second point is that in your POD you're using non-standard headings. Standard heading would look like the code below:

=head1 NAME LewisCarollCode - Short Description here =head1 SYNOPSIS use LewisCarollCode; Place an example usage of your functions here =head1 DESCRIPTION Describe the use and operation of the module
To get the headings and the look of the POD standard you should have a look at standard modules such as Data::Dumper.

--
integral, resident of freenode's #perl

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://231208]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others having a coffee break in the Monastery: (5)
As of 2024-04-25 14:50 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found