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

Re^3: Splitting program into modules

by LanX (Archbishop)
on Nov 12, 2018 at 10:58 UTC ( #1225621=note: print w/replies, xml ) Need Help??


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

I once had to maintain code which had many subs accessing a bunch of global states which where switched by calling an "init()" routine or passed flags.

After long analysis (Freudian yes) I realized that these routines where effectively methods, the states where instance vars and the so called init() routine switched the instances.

Well actually that was only a simplified description of what happened, I don't wanna give you nightmares. :)

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

</div

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others browsing the Monastery: (3)
As of 2020-02-21 22:40 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    What numbers are you going to focus on primarily in 2020?










    Results (97 votes). Check out past polls.

    Notices?