Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery

Re: Re: Good programming practice

by Purdy (Hermit)
on Nov 03, 2001 at 21:01 UTC ( #123052=note: print w/replies, xml ) Need Help??

in reply to Re: Good programming practice
in thread Good programming practice

Sweet - that answers one part of my question. Didn't know about use vars.

I'm still interested in knowing if this is the best design for such a system.


wog - I ran out of votes, but there's tomorrow!

Replies are listed 'Best First'.
(jeffa) 3Re: Good programming practice
by jeffa (Bishop) on Nov 03, 2001 at 21:08 UTC
    i do have a problem with require - it's a bit old, and more importantly, it's not portable. If you design a CPAN style module, you can install it on any system and access it from any program. Then you can 'use' the much better:use jdb; instead of require.

    A great reference for building CPAN style modules can be found here: perlnewmod (and no, you don't have to submit your module to CPAN for it to be a CPAN style module).

    But first, read perlmod. :)


      If you install the module in the @INC path you can require jbd; the same as use, but without the side effect of being done at compile time. If the module depends on runtime data (like $database from the example) swiching to use may cause trouble.

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others chilling in the Monastery: (2)
As of 2019-12-07 01:03 GMT
Find Nodes?
    Voting Booth?
    Strict and warnings: which comes first?

    Results (160 votes). Check out past polls.