<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
--></style>
</head>
<body class='hmmessage'>
Hi
All,<br>
<br>
I am trying to take a monolithic perl program (approx. 97k lines long)
and separate concerns (kind of an MVC-style division). I used <b>AutoSplit
</b>to break out the subroutines, but now I'm stuck. I tried separating
the *.al subroutines into a View directory if they contained a print
statement and into a Model directory if they didn't. The main part of
the program (before __END__) is about 4.6k lines that I am tentatively
making the Controller.<br>
<br>
So -- the autoload works as long as the the files are left in the state
in which were originally generated (a bunch of .al files all in one
directory). That still leaves me with about 191 separate files with no
classification on them, so I'd like to organize them in further
subdirectories to correspond with my separation of them into models,
views, and a controller.<br>
<br>
The problem is, if I move them, my autoload function no longer works.
And if I do put them in a subdirectory and load them as modules, they
use their own namespace and ignore all the lovely global variables the
original developer put in his vast, monolithic script. <br>
<br>
<br>
Does anyone have any ideas on how to proceed?<br>
<br>
Thanks,<br>
Fred Lowe<div>phredbob@hotmail.com</div>                                               <br /><hr />The New Busy think 9 to 5 is a cute idea. Combine multiple calendars with Hotmail.  <a href='http://www.windowslive.com/campaign/thenewbusy?tile=multicalendar&ocid=PID28326::T:WLMTAGL:ON:WL:en-US:WM_HMP:042010_5' target='_new'>Get busy.</a></body>
</html>