Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

Re^2: code review

by Madams (Pilgrim)
on Jul 12, 2004 at 00:06 UTC ( #373527=note: print w/replies, xml ) Need Help??

in reply to Re: code review
in thread code review

In Re your quibble on:

sub options { use Getopt::Long; . . .

I've noticed that "use"age in several actual O'Reilly books written by various "Big Name" perl gurus. It seems to me that they do that when the only reason for the "use ...;" is completely within the subroutine. Personally I find that to be kinda self documenting. Plus it really doesn't matter where you place a "BEGIN{}" or "use ...;" as they all get done at compile time in the order they occur in the code.

However I generally place all "use"ages at the top of the script myself.


Log In?

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

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (9)
As of 2018-06-22 13:30 GMT
Find Nodes?
    Voting Booth?
    Should cpanminus be part of the standard Perl release?

    Results (124 votes). Check out past polls.