List Info

Thread: Re: How best to modularise with strict




Re: How best to modularise with strict
country flaguser name
United States
2007-05-20 12:03:21

>>&gt;>> "kenshail2003&quot; == kenshail2003 < ken%40shail.co.uk">kenshail.co.uk> writes:

kenshail2003> I have a fairly large script that uses strict and has a
kenshail2003> signifcant number of global variables declared at the beginning
kenshail2003> with 'our'. I would like to move them all in to a separate file
kenshail2003&gt; in order to simplify layout. What is the recommended method, if
kenshail2003> indeed it is possible?

Get rid of the global variables. Global variables make the program fragile and
hard to maintain and to reuse the code for other applications.

Learn to properly modularize your code.

--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<; merlyn%40stonehenge.com">merlynstonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!

__._,_.___
.

__,_._,___
[1]

about | contact  Other archives ( Real Estate discussion Medical topics )