in reply to alternative way to subs
Let's see.. For each of these scripts progX.pl, we want to execute what's in them.. sort of.
By your example, you are not passing args to code in prog&*.pl files???
Thus the notion of "doing away with subs"?
If so, you can "execute" the code by..
# General.pl require './prog1.pl' require './prog2.pl'
# prog1.pl print "I am from prog1.pl\n"; 1;
# prog2.pl print "I am from prog2.pl\n"; 1;
|
|---|