My files look like this:
sub{
#some code here
}
I dont have the return inside the file with the code as it is in the loading routine (saves adding it for all files).
Thanks MillerH, what you have looks a lot better than the way I was trying to do it. It is now working perfectly!
Hi there, I am trying to write a program that will load all of the subroutines from text files into a hashref, then call them using soft references. I am using this code:
opendir( ROUTINES, './data/routines/' ) || die( 'Error Loading Routines: Unable to open directory'."\n" );
foreach my...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.