Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^3: Splitting program into modules

by LanX (Archbishop)
on Nov 11, 2018 at 18:16 UTC ( #1225590=note: print w/replies, xml ) Need Help??


in reply to Re^2: Splitting program into modules
in thread Splitting program into modules

As I already said you should start by splitting your 14000 lines into multiple files and require or do them, no need to switch packages at the first step.

(Careful about filescoped private variables)

Since caller will also tell you the filename, your debug routine can be more explicit then.

Btw: Using the trace option of the debugger might be another option.

Cheers Rolf
(addicted to the Perl Programming Language :)
Wikisyntax for the Monastery FootballPerl is like chess, only without the dice

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (3)
As of 2019-10-21 03:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Notices?