Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much

Re: Re: Location of 'use' statements (tye)

by Anonymous Monk
on Apr 21, 2003 at 19:24 UTC ( #252101=note: print w/replies, xml ) Need Help??

in reply to Re: Location of 'use' statements (tye)
in thread Location of 'use' statements

This is pretty much what I do, with the following differences:
package Blah; use strict; =HEAD1 NAME ... =cut BEGIN { # If I have one use XXX; # as required here } # pragma level 'use's use vars qw(...); # Core modules # CPAN modules # local modules # globals and initializing assignments # actual code at this point
I personally prefer the POD at the top, since it encourages me to write it first and update it first. Keeping it in front of my face as the first thing I see when the editor opens the file helps keep that positive guilty feeling of "you didn't update the POD, did you?" going, with the result that I actually do update it.

Log In?

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://252101]
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (10)
As of 2018-06-18 22:08 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (111 votes). Check out past polls.