"be consistent" | |
PerlMonks |
comment on |
( [id://3333]=superdoc: print w/replies, xml ) | Need Help?? |
Maybe you have a reason for it, but nowadays require'ing .pl files looks somewhat antiquated. Libraries should end up as modules to be use()d. You get to choose which subroutines pollute your namespace (via the Exporter module). You have a clean interface (where someone could look at the module and know which subroutines are internal and which are for other modules or scripts to use) If you really need the comments where a function is from, modules also give you a fitting (explicit) syntax. Instead of get_general_text('musing_cat',1); # center.plyou could write center::get_general_text('musing_cat',1);This way the interpreter will correct you if get_general_text were in header.pm instead In reply to Re: How's My Style Now?
by jethro
|
|