in reply to How best to break apart a large perl program
G'day Craigbert,
Welcome to the monastery.
The short answer is yes: you can break up your code into modules, gathering related functionality into separate modules and putting each module into its own file.
The longer answer is going to depend on what code you're actually dealing with: beyond knowing it's large, "does a LOT of stuff" and "jumps around a bit", we don't have a lot to go on.
As a start, given you're "VERY new to Perl", I'd suggest you bookmark the Online Perldoc (perl page): possibly read perlintro in the Overview section; look at what's available in the Tutorials section (maybe skimming some of the FAQs); and just make a mental note of the contents of the Reference Manual. Basically, there's far too much to read: get a feel for where things are documented so you can look them up quickly as you need to.
For creating the modules, take a look at perlmodlib - Modules: Creation, Use, and Abuse, perlmodstyle and perlmod.
-- Ken
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: How best to break apart a large perl program
by Craigbert (Initiate) on Sep 07, 2013 at 15:55 UTC | |
by kcott (Archbishop) on Sep 07, 2013 at 18:36 UTC |